Skip to content

Commit

Permalink
fix(projects): fix menu-toggler zIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed May 6, 2024
1 parent 599b4e1 commit 7bd43df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/common/menu-toggler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ interface Props {
collapsed?: boolean;
/** Arrow style icon */
arrowIcon?: boolean;
zIndex?: number;
}
const props = defineProps<Props>();
const props = withDefaults(defineProps<Props>(), {
arrowIcon: false,
zIndex: 98
});
type NumberBool = 0 | 1;
Expand Down Expand Up @@ -39,7 +43,7 @@ const icon = computed(() => {
<ButtonIcon
:tooltip-content="collapsed ? $t('icon.expand') : $t('icon.collapse')"
tooltip-placement="bottom-start"
:z-index="99"
:z-index="zIndex"
>
<SvgIcon :icon="icon" />
</ButtonIcon>
Expand Down
1 change: 1 addition & 0 deletions src/layouts/modules/global-menu/first-level-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function handleClickMixMenu(menu: App.Global.Menu) {
<MenuToggler
arrow-icon
:collapsed="appStore.siderCollapse"
:z-index="99"
:class="{ 'text-white:88 !hover:text-white': inverted }"
@click="appStore.toggleSiderCollapse"
/>
Expand Down

0 comments on commit 7bd43df

Please sign in to comment.