mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site): enable word-level inline diff highlighting in DiffViewer (#23423)
This commit is contained in:
@@ -230,7 +230,11 @@ const SEPARATOR_CSS = [
|
||||
].join(" ");
|
||||
|
||||
export const diffViewerCSS = [
|
||||
"pre, [data-line]:not([data-selected-line]), [data-diffs-header] { background-color: transparent !important; }",
|
||||
// Make context lines transparent so they blend with the page,
|
||||
// but preserve the library's colored backgrounds on changed
|
||||
// lines (change-addition / change-deletion) so the line-level
|
||||
// tint and word-level emphasis highlights remain visible.
|
||||
"pre, [data-line]:not([data-selected-line]):not([data-line-type='change-addition']):not([data-line-type='change-deletion']), [data-diffs-header] { background-color: transparent !important; }",
|
||||
"[data-diffs-header] { border-left: 1px solid var(--border); }",
|
||||
SELECTION_OVERRIDE_CSS,
|
||||
SEPARATOR_CSS,
|
||||
|
||||
Reference in New Issue
Block a user