Skip to content

Commit 2d4c293

Browse files
committed
fix: Only allow selection line content instead of parent element
1 parent e48259d commit 2d4c293

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ui/css/diff2html.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,18 @@
107107
padding: 0 4.5em;
108108
}
109109

110+
.d2h-code-line,
111+
.d2h-code-side-line {
112+
user-select: none;
113+
width: 100%;
114+
}
115+
116+
.d2h-code-line-ctn {
117+
display: inline-block;
118+
user-select: text;
119+
width: 100%;
120+
}
121+
110122
.d2h-code-line del,
111123
.d2h-code-side-line del {
112124
display: inline-block;

0 commit comments

Comments
 (0)