diff --git a/src/pages/DuplicateFilesPage.tsx b/src/pages/DuplicateFilesPage.tsx index df76381..f45b50f 100644 --- a/src/pages/DuplicateFilesPage.tsx +++ b/src/pages/DuplicateFilesPage.tsx @@ -4,6 +4,7 @@ import { FolderPlus, Lock, MapPin, + ScanSearch, ShieldAlert, Sparkles, Trash2, @@ -286,10 +287,19 @@ export function DuplicateFilesPage({ ))} - @@ -338,7 +348,7 @@ export function DuplicateFilesPage({ icon={} title={t("No duplicate scan yet", "还没有扫描过重复文件")} description={t( - "The first scan walks your files once; later scans reuse the hash cache and only re-check what changed.", + "Start scan walks your files once; later scans reuse the hash cache and only re-check what changed.", "首次扫描遍历一遍文件;之后的扫描复用哈希缓存,只重算发生变化的文件。", )} /> diff --git a/src/pages/LargeFilesPage.tsx b/src/pages/LargeFilesPage.tsx index 86ed01c..cb2d664 100644 --- a/src/pages/LargeFilesPage.tsx +++ b/src/pages/LargeFilesPage.tsx @@ -2,11 +2,13 @@ import { Archive, Disc3, Cloud, + FileQuestion, FileVideo, HardDrive, Lock, MapPin, Package, + ScanSearch, ShieldAlert, Trash2, } from "lucide-react"; @@ -225,8 +227,19 @@ export function LargeFilesPage({ ); })} - @@ -240,6 +253,17 @@ export function LargeFilesPage({ /> ) : null} + {!files && !scanning ? ( + } + title={t("No large-file scan yet", "还没有扫描过大文件")} + description={t( + "Start scan walks every drive above the size floor; results sort heaviest first.", + "点击「开始扫描」按体积门槛遍历所选磁盘,结果从最大往下排。", + )} + /> + ) : null} + {visible && visible.length === 0 && !scanning ? ( } diff --git a/src/pages/SpacePage.tsx b/src/pages/SpacePage.tsx index 3d824b9..b34e92a 100644 --- a/src/pages/SpacePage.tsx +++ b/src/pages/SpacePage.tsx @@ -1024,20 +1024,7 @@ export function SpacePage({ return (
- {embedded ? ( -
- -
- ) : ( + {!embedded ? (
{t("Space cleaning", "空间清理")}
@@ -1051,44 +1038,53 @@ export function SpacePage({ )}

+
+ ) : null} + + {/* Shared hub toolbar: config items wrap on the left, one big primary + action pinned right — the three space tabs dress it identically. */} +
+
+ + {t("Deep-scan folders", "深度扫描目录")} + + + {t( + "Auto-discovered: Desktop, Documents, project folders on every drive", + "自动发现:桌面、文档、各磁盘根目录下的项目目录(无需设置)", + )} + + + + {t("Older than", "仅处理早于")} + +
+ {AGE_CHOICES.map((days) => ( + + ))} +
+
-
- )} - -
- - {t("Deep-scan folders", "深度扫描目录")} - - - {t( - "Auto-discovered: Desktop, Documents, project folders on every drive", - "自动发现:桌面、文档、各磁盘根目录下的项目目录(无需设置)", - )} - - - {t("Older than", "仅处理早于")} - -
- {AGE_CHOICES.map((days) => ( - - ))} -
{/* Git 保护不再有开关:它永远是开着的(删前用 git 复核被跟踪的目录), 需要绕过时走 CLI 的 --all。 */}
@@ -1169,16 +1165,9 @@ export function SpacePage({ {t( "Not scanned yet. Start scan checks known cache spots and auto-discovers project folders across the machine.", - "尚未扫描。点击「开始扫描」,Squid 会检查已知缓存位置,并自动发现本机各处的项目构建目录。", + "尚未扫描。点击右侧「开始扫描」,Squid 会检查已知缓存位置,并自动发现本机各处的项目构建目录。", )} - {/* Embedded: the head button is hidden inside the hub, so the - empty stage carries its own entry point. */} - {embedded ? ( - - ) : null}
) : null} diff --git a/src/styles.css b/src/styles.css index 8816526..fb4c7b7 100644 --- a/src/styles.css +++ b/src/styles.css @@ -5486,6 +5486,30 @@ select:focus-visible, background: #fff; } +/* Config bars of the three space tabs all end in the same big primary CTA + pinned right; labels/segs wrap inside .config-items on the left. */ +.config-items { + display: flex; + align-items: center; + flex: 1 1 auto; + flex-wrap: wrap; + gap: 12px; + min-width: 0; +} + +.space-config-spacer { + flex: 1 1 auto; +} + +.page.is-embedded .space-config { + margin-top: 14px; +} + +.button.scan-cta { + flex: 0 0 auto; + margin-left: auto; +} + .space-config-label { color: #3a3226; font-size: var(--nex-text-2xs);