From ea9cafaee10213330ab3b42102dfe47121341497 Mon Sep 17 00:00:00 2001 From: Devesh Shetty <16123698+devesh-shetty@users.noreply.github.com> Date: Wed, 2 Jul 2025 18:15:16 -0400 Subject: [PATCH] Fix responsive layout not returning to desktop mode (#201) --- web/src/client/app.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/client/app.ts b/web/src/client/app.ts index 1c202fa2..8e9f5658 100644 --- a/web/src/client/app.ts +++ b/web/src/client/app.ts @@ -932,6 +932,11 @@ export class VibeTunnelApp extends LitElement { this.sidebarCollapsed = true; this.saveSidebarState(true); } + // Auto-expand sidebar when switching from mobile to desktop + else if (oldState.isMobile && !state.isMobile && this.sidebarCollapsed) { + this.sidebarCollapsed = false; + this.saveSidebarState(false); + } } else if (!this.responsiveObserverInitialized) { // Mark as initialized after first callback this.responsiveObserverInitialized = true;