Skip to content

Commit

Permalink
fix: avoid menus overflow scrolling side effect (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
JianJroh committed Mar 19, 2024
1 parent e1e6ced commit 745cc95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/admin/src/layouts/sidebar/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const collapsedWidth = computed<number>(() => collapsed ? 64 : 300);

<template>
<div :class="collapsed ? 'w-16' : 'w-75'" class="transition-width h-full shrink-0 flex-col overflow-hidden duration-75">
<NScrollbar>
<NScrollbar class="max-h-[calc(100vh_-_4rem)]">
<NMenu
v-model:value="activeMenu"
:collapsed="collapsed"
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/layouts/sidebar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const sidebar = ref(null);
<template>
<aside
id="sidebar"
class="sidebar flex flex-col"
class="sidebar flex flex-col h-full"
:class="{ collapsed: isCollapse, opened: !isCollapse }"
>
<div ref="sidebar" class="sidebar-wrap grow flex flex-col">
Expand Down

0 comments on commit 745cc95

Please sign in to comment.