mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-12-21 22:23:56 +00:00
fix code
This commit is contained in:
@@ -111,10 +111,12 @@ export const diff = css`
|
|||||||
/* visibility: hidden; */ // 不要使用 visibility: hidden; 当 escape 有内容时会导致背景颜色丢失, escape 目前用于显示检测 unicode 编码错误的内容
|
/* visibility: hidden; */ // 不要使用 visibility: hidden; 当 escape 有内容时会导致背景颜色丢失, escape 目前用于显示检测 unicode 编码错误的内容
|
||||||
}
|
}
|
||||||
// 修复当 escape 有内容时, 宽度不够的问题
|
// 修复当 escape 有内容时, 宽度不够的问题
|
||||||
table:has(td.lines-escape:not(:empty)) {
|
&:has(td.lines-escape:not(:empty)) {
|
||||||
colgroup col:nth-child(3),
|
// 合并视图的第三列
|
||||||
colgroup col:nth-child(2),
|
&.code-diff-unified colgroup col:nth-child(3),
|
||||||
colgroup col:nth-child(6),
|
// 拆分视图的第二列和第六列
|
||||||
|
&.code-diff-split colgroup col:nth-child(2),
|
||||||
|
&.code-diff-split colgroup col:nth-child(6),
|
||||||
td.lines-escape {
|
td.lines-escape {
|
||||||
width: 20;
|
width: 20;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user