Procházet zdrojové kódy

tweak(ui): max-width on session when the review is closed but the file tree is open

David Hill před 5 měsíci
rodič
revize
09e1b98bc6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/app/src/pages/session.tsx

+ 1 - 1
packages/app/src/pages/session.tsx

@@ -107,7 +107,7 @@ export default function Page() {
     if (desktopReviewOpen()) return `${layout.session.width()}px`
     return `calc(100% - ${layout.fileTree.width()}px)`
   })
-  const centered = createMemo(() => isDesktop() && !desktopSidePanelOpen())
+  const centered = createMemo(() => isDesktop() && !desktopReviewOpen())
 
   function normalizeTab(tab: string) {
     if (!tab.startsWith("file://")) return tab