mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-06-28 05:29:29 +00:00
Fix responsive layout not returning to desktop mode (#201)
This commit is contained in:
parent
38cd396b8a
commit
ea9cafaee1
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue