Skip to content

Commit d731111

Browse files
NicholasLDhonghuangdc
authored andcommitted
refactor(menu): optimize the margin on the menu
1 parent 29a2a5c commit d731111

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/layouts/modules/global-menu/modules/top-hybrid-sidebar-first.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ const { selectedKey } = useMenu();
3030
/>
3131
</Teleport>
3232
<Teleport :to="`#${GLOBAL_SIDER_MENU_ID}`">
33-
<FirstLevelMenu
33+
<div class="h-full pt-2">
34+
<FirstLevelMenu
3435
:menus="firstLevelMenus"
3536
:active-menu-key="activeFirstLevelMenuKey"
3637
:sider-collapse="appStore.siderCollapse"
@@ -39,6 +40,7 @@ const { selectedKey } = useMenu();
3940
@select="handleSelectFirstLevelMenu"
4041
@toggle-sider-collapse="appStore.toggleSiderCollapse"
4142
/>
43+
</div>
4244
</Teleport>
4345
</template>
4446

0 commit comments

Comments
 (0)