tweak(ui): max-width on session when the review is closed but the file tree is open
This commit is contained in:
@@ -107,7 +107,7 @@ export default function Page() {
|
|||||||
if (desktopReviewOpen()) return `${layout.session.width()}px`
|
if (desktopReviewOpen()) return `${layout.session.width()}px`
|
||||||
return `calc(100% - ${layout.fileTree.width()}px)`
|
return `calc(100% - ${layout.fileTree.width()}px)`
|
||||||
})
|
})
|
||||||
const centered = createMemo(() => isDesktop() && !desktopSidePanelOpen())
|
const centered = createMemo(() => isDesktop() && !desktopReviewOpen())
|
||||||
|
|
||||||
function normalizeTab(tab: string) {
|
function normalizeTab(tab: string) {
|
||||||
if (!tab.startsWith("file://")) return tab
|
if (!tab.startsWith("file://")) return tab
|
||||||
|
|||||||
Reference in New Issue
Block a user