diff --git a/styles/components/navbar.ts b/styles/components/navbar.ts index 2bb3a38..e2571da 100644 --- a/styles/components/navbar.ts +++ b/styles/components/navbar.ts @@ -4,6 +4,8 @@ export const navbarRight = ` #navbar { padding: 8px 16px; /* 上下内边距 + .navbar-left & .navbar-right 的 min-height = 64px */ min-height: 64px; + position: relative; + z-index: 1000; .navbar-left, .navbar-right { min-height: 48px; @@ -128,6 +130,7 @@ export const navbarRight = ` } /* 用户菜单 */ .navbar-right .user-menu { + z-index: 1001; width: var(--custom-user-menu-width, 192px); max-width: 320px; > .header {