From 9328558dbb21e1dacff8133cfddef24326162741 Mon Sep 17 00:00:00 2001 From: Eduard Gert Date: Thu, 11 Jun 2026 15:04:17 +0200 Subject: [PATCH] keep right panel always mounted --- client/ui/frontend/src/modules/main/MainPage.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/client/ui/frontend/src/modules/main/MainPage.tsx b/client/ui/frontend/src/modules/main/MainPage.tsx index e9af6e5fe..7f9ce01b8 100644 --- a/client/ui/frontend/src/modules/main/MainPage.tsx +++ b/client/ui/frontend/src/modules/main/MainPage.tsx @@ -5,7 +5,7 @@ import { AppRightPanel } from "@/layouts/AppRightPanel.tsx"; import { Navigation } from "@/modules/main/advanced/Navigation.tsx"; import { cn } from "@/lib/cn"; import { NavSectionProvider, useNavSection } from "@/contexts/NavSectionContext"; -import { ViewModeProvider, useViewMode } from "@/contexts/ViewModeContext"; +import { ViewModeProvider } from "@/contexts/ViewModeContext"; import { NotConnectedState } from "@/components/empty-state/NotConnectedState"; import { useStatus } from "@/contexts/StatusContext"; import { Peers } from "@/modules/main/advanced/peers/Peers"; @@ -29,9 +29,6 @@ export const MainPage = () => { }; const MainBody = () => { - const { viewMode } = useViewMode(); - const isAdvanced = viewMode === "advanced"; - return (
{/* Windows narrower width compensates for the OS frame Wails counts differently than macOS. @@ -47,11 +44,9 @@ const MainBody = () => {
- {isAdvanced && ( - - - - )} + + + ); };