rollback menu layout

This commit is contained in:
jxxghp
2025-03-30 18:02:25 +08:00
parent b8e546a584
commit a909cdc21c
4 changed files with 212 additions and 162 deletions
+7 -17
View File
@@ -117,23 +117,13 @@ function handleNavScroll(evt: Event) {
}
.nav-items {
overflow-x: hidden;
overflow-y: auto;
block-size: 100%;
display: flex;
flex-direction: column;
padding: 0 0 16px 0;
/* 完全隐藏滚动条 */
&::-webkit-scrollbar {
display: none;
}
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE and Edge */
> li {
margin-block-end: 2px;
}
// ️ We no loner needs this overflow styles as perfect scrollbar applies it
// overflow-x: hidden;
// // ️ We used `overflow-y` instead of `overflow` to mitigate overflow x. Revert back if any issue found.
// overflow-y: auto;
}
.nav-item-title {
@@ -161,4 +151,4 @@ function handleNavScroll(evt: Event) {
}
}
}
</style>
</style>