From 0cd0765fadefd251ef3bea0db6cb501c8a00e0ee Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Wed, 25 Nov 2026 01:02:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20=E5=88=A0=E9=99=A4=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=9B=BF=E6=8D=A2=E5=90=8E=E5=A4=B1=E6=95=88=E7=9A=84?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=A7=84=E5=88=99=EF=BC=88B3=20=E6=94=B6?= =?UTF-8?q?=E5=B0=BE=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - sidebar.module.css: 删掉 editorDownloadLink(含 :hover 与 focus-visible 组内一行)、mediaPreviewNotice、largeFileDownload 及其说明注释;largeFileNoticeAction 仍被 LargeFileView 使用,保留。 - terminal.module.css: 删掉 .notice / .error / .action / .action:hover,以及同组零引用的 .noticeBlock。 --- src/client/sidebar.module.css | 33 ----------------------------- src/client/terminal.module.css | 38 ---------------------------------- 2 files changed, 71 deletions(-) diff --git a/src/client/sidebar.module.css b/src/client/sidebar.module.css index 72c20859..6e29dddf 100644 --- a/src/client/sidebar.module.css +++ b/src/client/sidebar.module.css @@ -1595,36 +1595,8 @@ body[data-dsh-sidebar-dragging] .bottomPanel { margin: auto 0; } -.mediaPreviewNotice { - padding: 16px; - text-align: center; - font: var(--dsw-font-xxs-12); - color: var(--dsw-alias-label-tertiary); -} -/* Binary / download-only files (legacy OLE .doc/.xls/.ppt, unknown binaries): - a centered notice plus a download link — the user always gets the file. */ -.editorDownloadLink { - display: inline-flex; - align-items: center; - gap: 6px; - padding: 6px 14px; - border: 1px solid var(--dsw-alias-border-l2); - border-radius: 6px; - background: var(--dsw-alias-bg-layer-2); - color: var(--dsw-alias-label-primary); - font: var(--dsw-font-xxs-strong-12); - text-decoration: none; - cursor: pointer; - transition: - background var(--ds-transition-duration-slow) var(--ds-ease-in-out), - border-color var(--ds-transition-duration-slow) var(--ds-ease-in-out); -} -.editorDownloadLink:hover { - background: var(--dsw-alias-interactive-bg-hover); - border-color: var(--dsw-alias-border-l2); -} .editorError { padding: 12px 16px; @@ -2373,7 +2345,6 @@ body[data-dsh-sidebar-dragging] .bottomPanel { .explorerRef:focus-visible, .terminalRetry:focus-visible, .editorModeButton:focus-visible, -.editorDownloadLink:focus-visible, .editorPptxButton:focus-visible, .editorDocxZoomRange:focus-visible { outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent); @@ -2628,10 +2599,6 @@ body[data-dsh-sidebar-dragging] .bottomPanel { background: var(--dsw-alias-state-warn-tertiary); } -.largeFileDownload { - color: inherit; - text-decoration: underline; -} /* The notice's own "load all" action. It rides the notice's warn ink (the bar is a warning surface, not a toolbar) and sits flush right, with the download diff --git a/src/client/terminal.module.css b/src/client/terminal.module.css index 8c0a8423..709989f1 100644 --- a/src/client/terminal.module.css +++ b/src/client/terminal.module.css @@ -61,45 +61,7 @@ background: var(--dsw-alias-bg-layer-2); } -.noticeBlock { - display: flex; - flex: 1; - flex-direction: column; - align-items: center; - justify-content: center; - gap: 16px; - min-height: 0; - padding: 24px; - overflow: auto; -} -.notice { - max-width: 32ch; - margin: 0; - line-height: 1.6; - text-align: center; - overflow-wrap: anywhere; - color: var(--dsw-alias-label-primary); -} -.error { - margin: 0; - padding: 10px 12px; - overflow-wrap: anywhere; - color: var(--dsw-alias-label-primary); - background: var(--dsw-alias-bg-layer-2); -} -.action { - flex: none; - padding: 3px 10px; - border: 0.5px solid var(--dsw-alias-border-l4); - border-radius: 6px; - cursor: pointer; - color: var(--dsw-alias-label-primary); - background: var(--dsw-alias-bg-layer-1); -} -.action:hover { - background: var(--dsw-alias-bg-layer-2); -}