Skip to content

Commit

Permalink
[MS] Prevent sidebar auto-hide
Browse files Browse the repository at this point in the history
  • Loading branch information
Ironicbay committed Nov 26, 2024
1 parent 5840cd7 commit 3dd4e3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion client/src/views/header/HeaderPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@
</div>

<!-- icon menu on mobile -->
<ion-buttons slot="start">
<ion-buttons
slot="start"
v-if="isMobile()"
>
<ion-menu-button />
</ion-buttons>
<!-- end of icon menu on mobile -->
Expand Down
8 changes: 6 additions & 2 deletions client/src/views/sidebar-menu/SidebarMenuPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
<div
class="resize-divider"
ref="divider"
v-show="isVisible()"
/>
<ion-split-pane content-id="main">
<ion-split-pane
content-id="main"
:when="true"
>
<ion-menu
content-id="main"
class="sidebar"
Expand Down Expand Up @@ -372,7 +376,7 @@ const informationManager: InformationManager = inject(InformationManagerKey)!;
const storageManager: StorageManager = inject(StorageManagerKey)!;
let eventDistributorCbId: string | null = null;
const divider = ref();
const { defaultWidth, initialWidth, computedWidth } = useSidebarMenu();
const { defaultWidth, initialWidth, computedWidth, isVisible } = useSidebarMenu();
const userInfo: Ref<ClientInfo | null> = ref(null);
const currentDevice = ref<AvailableDevice | null>(null);
const favorites: Ref<WorkspaceID[]> = ref([]);
Expand Down

0 comments on commit 3dd4e3b

Please sign in to comment.