From 351b0b7fa04c3cafae8ac0074f3c83bb058364f4 Mon Sep 17 00:00:00 2001 From: Julian Freeman Date: Tue, 3 Mar 2026 22:50:53 -0400 Subject: [PATCH] change icons --- src/App.vue | 64 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 56 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8a86ec1..a47910d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@ import pkg from "../package.json"; type Tab = 'clean-c-fast' | 'clean-c-advanced' | 'clean-c-deep' | 'clean-browser-chrome' | 'clean-browser-edge' | 'clean-memory'; const activeTab = ref('clean-c-fast'); const isCMenuOpen = ref(true); -const isBrowserMenuOpen = ref(false); +const isBrowserMenuOpen = ref(true); // --- 数据结构 --- interface ScanItem { name: string; path: string; size: number; count: number; enabled: boolean; } @@ -426,7 +426,9 @@ watch(activeTab, (newTab) => {
{{ node.size_str }}
@@ -1010,16 +1018,22 @@ watch(activeTab, (newTab) => { @click.stop > @@ -1168,6 +1182,7 @@ body { padding: 40px 60px; overflow-y: auto; height: 100%; + scrollbar-gutter: stable; } /* 当处于全屏模式(深度分析)时,内容区本身不滚动,让内部树形滚动 */ .content:has(.page-container.full-width) { @@ -1824,4 +1839,37 @@ body { opacity: 0.7; pointer-events: none; } + +/* --- SVG 图标通用样式 --- */ +.svg-icon { + display: inline-flex; + align-items: center; + justify-content: center; + vertical-align: middle; +} + +.svg-icon svg { + width: 1.25em; + height: 1.25em; + stroke: currentColor; + stroke-width: 2; + fill: none; + stroke-linecap: round; + stroke-linejoin: round; +} + +.svg-icon.big svg { + width: 2.5em; + height: 2.5em; +} + +.icon.svg-icon { + margin-right: 12px; + color: inherit; +} + +.icon.svg-icon svg { + width: 18px; + height: 18px; +} \ No newline at end of file