重叠边框线, 避免过粗

This commit is contained in:
lutinglt
2025-08-14 00:10:46 +08:00
parent a4c94cb34d
commit 6aef26cdc8

View File

@@ -197,8 +197,7 @@ export const repoFileView = css`
border: 1px solid ${themeVars.color.secondary.self}; border: 1px solid ${themeVars.color.secondary.self};
border-radius: ${otherThemeVars.border.radius}; border-radius: ${otherThemeVars.border.radius};
height: 46px; height: 46px;
// 重叠边框线, 避免过粗 min-height: 46px;
min-height: 45px;
padding: 8px; padding: 8px;
position: sticky; position: sticky;
top: 0; top: 0;
@@ -210,7 +209,8 @@ export const repoFileView = css`
z-index: 0; z-index: 0;
h4.file-header { h4.file-header {
position: sticky; position: sticky;
top: 46px; // 重叠边框线, 避免过粗
top: 45px;
z-index: 1; z-index: 1;
} }
} }