From 2d4c293a274c5f13825c89c6fc04eeefbd488238 Mon Sep 17 00:00:00 2001 From: Rodrigo Fernandes Date: Tue, 27 Oct 2020 20:06:45 +0000 Subject: [PATCH] fix: Only allow selection line content instead of parent element --- src/ui/css/diff2html.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ui/css/diff2html.css b/src/ui/css/diff2html.css index acd5db5..a657891 100644 --- a/src/ui/css/diff2html.css +++ b/src/ui/css/diff2html.css @@ -107,6 +107,18 @@ padding: 0 4.5em; } +.d2h-code-line, +.d2h-code-side-line { + user-select: none; + width: 100%; +} + +.d2h-code-line-ctn { + display: inline-block; + user-select: text; + width: 100%; +} + .d2h-code-line del, .d2h-code-side-line del { display: inline-block;