This commit is contained in:
lutinglt
2025-11-06 09:26:02 +08:00
parent adfa315484
commit 3851dc2449

View File

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