diff --git a/Changelog.md b/Changelog.md index 00922b91f..5d2f9f239 100644 --- a/Changelog.md +++ b/Changelog.md @@ -30,5 +30,6 @@ - Windows 下自启动改为计划任务实现 - 改进托盘和窗口操作频率限制实现 - 使用「编辑节点」添加节点时,自动将节点添加到第一个 `select` 类型的代理组的第一位 +- 隐藏侧边导航栏和悬浮跳转导航的滚动条 diff --git a/src/assets/styles/layout.scss b/src/assets/styles/layout.scss index cdeaf43f7..dc5c27368 100644 --- a/src/assets/styles/layout.scss +++ b/src/assets/styles/layout.scss @@ -61,6 +61,12 @@ overflow-y: auto; margin-bottom: 0px; padding-top: 4px; + scrollbar-width: none; + + &::-webkit-scrollbar { + width: 0; + height: 0; + } } .the-traffic { diff --git a/src/components/proxy/proxy-group-navigator.tsx b/src/components/proxy/proxy-group-navigator.tsx index 1ca67a75f..e60dfe6ac 100644 --- a/src/components/proxy/proxy-group-navigator.tsx +++ b/src/components/proxy/proxy-group-navigator.tsx @@ -106,6 +106,11 @@ export const ProxyGroupNavigator = ({ p: 0.25, maxHeight: "70vh", overflowY: "auto", + scrollbarWidth: "none", + "&::-webkit-scrollbar": { + width: 0, + height: 0, + }, minWidth: "auto", }} >