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

This commit is contained in:
David Hill
2026-02-27 00:08:55 +00:00
parent 37d42595cf
commit 09e1b98bc6

View File

@@ -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