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}; + } + } } } }