Fix responsive layout not returning to desktop mode (#201)

This commit is contained in:
Devesh Shetty 2025-07-02 18:15:16 -04:00 committed by GitHub
parent 38cd396b8a
commit ea9cafaee1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;