diff --git a/src/App.tsx b/src/App.tsx index 282ba2e..07740f6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -141,7 +141,7 @@ function MainContent(): React.JSX.Element { } if (nextPortraitMode) { await api.windowSetResizable(false) - await api.windowResize(940, 1280) + await api.windowResize(940, 1380) setSidebarCollapsed(true) } else { await api.windowSetResizable(true) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 73bf6b5..29ff1b0 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -193,7 +193,11 @@ export function Sidebar({ const showFloatingPanel = floatingExpand && collapsed && floatingExpanded - const renderSidebarBody = (isCollapsedView: boolean, isFloatingPanel = false) => ( + const renderSidebarBody = ( + isCollapsedView: boolean, + isFloatingPanel = false, + hideMenu = false + ) => ( <>
-
- { - onMenuChange(key) - if (floatingExpand && collapsed) { - setFloatingExpanded(false) - } - }} - style={{ - width: "100%", - border: "none", - backgroundColor: "transparent", - }} - items={menuItems} - /> -
+ {!hideMenu && ( +
+ { + onMenuChange(key) + if (floatingExpand && collapsed) { + setFloatingExpanded(false) + } + }} + style={{ + width: "100%", + border: "none", + backgroundColor: "transparent", + }} + items={menuItems} + /> +
+ )} - {!isCollapsedView && dbStatus.type === "postgresql" && ( + {!isCollapsedView && !hideMenu && dbStatus.type === "postgresql" && ( {contextHolder} - {renderSidebarBody(collapsed)} + {renderSidebarBody(collapsed, false, showFloatingPanel)} {showFloatingPanel && (
- +