fix(menu): 展开/收起全部按钮吸顶固定在 hero 下沿(sticky top:160,滚动侧栏始终可见)
This commit is contained in:
1 parent
c6341ea35b
commit
855378df2c
1 file changed
+7
@@ -183,6 +183,13 @@ const themeVars = useThemeVars();
|
||||
}
|
||||
|
||||
.menu-actions {
|
||||
// 滚动侧栏时吸顶固定,展开/收起全部始终可见。
|
||||
// top 对齐 hero 固定区高度(160px,与 .sider-content padding-top 配套),避免被 z-index:10 的 hero 盖住
|
||||
position: sticky;
|
||||
top: 160px;
|
||||
z-index: 5;
|
||||
background: var(--n-color, #fff);
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
Reference in new issue
Block a user