From 7366813f027b7f3816e3e03faf4bf64d0e5f0d2a Mon Sep 17 00:00:00 2001 From: lutinglt Date: Sat, 6 Sep 2025 20:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8F=90=E4=BA=A4=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=B0=BE=E8=A1=8C=E5=9C=86=E8=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 1 + styles/components/commit.ts | 25 ++++++++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/release.md b/.github/release.md index 4358a22..c416921 100644 --- a/.github/release.md +++ b/.github/release.md @@ -21,6 +21,7 @@ - 修复后台管理的运维管理面板的样式 - 取消修改编辑器字体大小, 避免光标错位 - 修复文件预览时文件树右边框过粗 +- 修复提交列表尾行圆角 ## 📃 English (From AI) diff --git a/styles/components/commit.ts b/styles/components/commit.ts index 043b8e8..9d00fb1 100644 --- a/styles/components/commit.ts +++ b/styles/components/commit.ts @@ -42,13 +42,24 @@ export const commit = css` color: ${themeVars.color.text.light.num1}; } } - // 整行悬停色 - tr:hover { - background-color: ${themeVars.color.hover.opaque}; - } - // 偶数行悬停色 - tr:nth-child(2n):hover { - background-color: ${themeVars.color.hover.opaque} !important; + tr { + // 整行悬停色 + &:hover { + background-color: ${themeVars.color.hover.opaque}; + } + // 偶数行悬停色 + &:nth-child(2n):hover { + background-color: ${themeVars.color.hover.opaque} !important; + } + // 尾行圆角 + &:last-child { + td:first-child { + border-bottom-left-radius: ${otherThemeVars.border.radius}; + } + td:last-child { + border-bottom-right-radius: ${otherThemeVars.border.radius}; + } + } } } }