mobile changes

This commit is contained in:
Michael Freno
2025-12-21 09:34:39 -05:00
parent cf2a217afd
commit 14ea299ca3
5 changed files with 32 additions and 7 deletions

View File

@@ -41,6 +41,7 @@ function AppLayout(props: { children: any }) {
setRightBarVisible(true);
}
// On mobile, leftBarSize() is always 0 (overlay mode)
const newWidth = window.innerWidth - leftBarSize() - rightBarSize();
setCenterWidth(newWidth);
};
@@ -55,6 +56,7 @@ function AppLayout(props: { children: any }) {
// Recalculate when bar sizes change (visibility or actual resize)
createEffect(() => {
// On mobile, leftBarSize() is always 0 (overlay mode)
const newWidth = window.innerWidth - leftBarSize() - rightBarSize();
setCenterWidth(newWidth);
});