diff --git a/src/@layouts/components/TransitionExpand.vue b/src/@layouts/components/TransitionExpand.vue index 65d1d838..070a2df2 100644 --- a/src/@layouts/components/TransitionExpand.vue +++ b/src/@layouts/components/TransitionExpand.vue @@ -1,92 +1,209 @@ - - - - - diff --git a/src/@layouts/components/VerticalNav.vue b/src/@layouts/components/VerticalNav.vue index 762ad98c..c7ccc76a 100644 --- a/src/@layouts/components/VerticalNav.vue +++ b/src/@layouts/components/VerticalNav.vue @@ -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) { } } } - \ No newline at end of file + diff --git a/src/@layouts/components/VerticalNavLink.vue b/src/@layouts/components/VerticalNavLink.vue index 7113052c..2bcb7fa4 100644 --- a/src/@layouts/components/VerticalNavLink.vue +++ b/src/@layouts/components/VerticalNavLink.vue @@ -1,29 +1,16 @@