From 796c6f151928f02e69690fbf74d9729e66676ab6 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Sun, 7 Sep 2025 11:00:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=B7=AE=E5=BC=82=E5=AF=B9?= =?UTF-8?q?=E6=AF=94=E9=A1=B5=E9=9D=A2=E6=96=87=E4=BB=B6=E5=90=8D=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=A0=8F=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 1 + styles/components/diff.ts | 30 +++++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/release.md b/.github/release.md index e89745b..e86e1c2 100644 --- a/.github/release.md +++ b/.github/release.md @@ -22,6 +22,7 @@ - 同步订阅页面样式 - 同步用户菜单样式 - 优化下拉菜单样式 +- 同步差异对比页面文件名标题栏样式 ### 🐞 Fix diff --git a/styles/components/diff.ts b/styles/components/diff.ts index 74044c6..bbd2865 100644 --- a/styles/components/diff.ts +++ b/styles/components/diff.ts @@ -31,7 +31,6 @@ export const diff = css` .code-expander-button { color: ${themeVars.color.text.light.num1}; height: 28px !important; - &:hover { background: ${themeVars.github.bgColor.accent.emphasis}; color: ${themeVars.color.white}; @@ -41,4 +40,33 @@ export const diff = css` .lines-num { text-align: center !important; } + // 差异对比文件盒子 + .diff-file-box { + // 差异对比文件头 + .diff-file-header { + // 文件名 + .diff-file-name { + font-weight: 400; + .fold-file.btn svg { + min-width: 16px; + min-height: 16px; + height: 16px; + width: 16px; + } + .diff-stats-bar { + height: 8px; + } + > div, + .file-link { + font-size: 12px; + } + } + // 操作按钮 + .diff-file-header-actions { + color: ${themeVars.color.text.light.num1}; + font-size: 12px; + font-weight: 400; + } + } + } `;