From a4cb1a6e7089dccdc65649ed96c063e1afe12ce7 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 25 Sep 2022 14:23:26 +0200 Subject: [PATCH 1/4] Use native inputs in whitespace dropdown --- templates/repo/diff/whitespace_dropdown.tmpl | 16 ++++++++-------- web_src/less/helpers.less | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/templates/repo/diff/whitespace_dropdown.tmpl b/templates/repo/diff/whitespace_dropdown.tmpl index 9df79dab739c..390254630da2 100644 --- a/templates/repo/diff/whitespace_dropdown.tmpl +++ b/templates/repo/diff/whitespace_dropdown.tmpl @@ -3,20 +3,20 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}} diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less index 5510ee5b236c..eb28d9df02ad 100644 --- a/web_src/less/helpers.less +++ b/web_src/less/helpers.less @@ -19,6 +19,9 @@ .h-100 { height: 100% !important; } .br-0 { border-radius: 0 !important; } +/* below class names match tailwind.css */ +.pointer-events-none { pointer-events: none !important; } + .mono { font-family: var(--fonts-monospace) !important; font-size: .9em !important; /* compensate for monospace fonts being usually slightly larger */ From 58ec4820a4c8554d1bb954a0fc58b39ab387b78e Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 25 Sep 2022 14:51:46 +0200 Subject: [PATCH 2/4] use nesting --- templates/repo/diff/whitespace_dropdown.tmpl | 24 +++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/templates/repo/diff/whitespace_dropdown.tmpl b/templates/repo/diff/whitespace_dropdown.tmpl index 390254630da2..c9310fc454c2 100644 --- a/templates/repo/diff/whitespace_dropdown.tmpl +++ b/templates/repo/diff/whitespace_dropdown.tmpl @@ -3,20 +3,28 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}} From bfaeaa6f81c97ba98a76831162f31b6068f43700 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 25 Sep 2022 14:52:55 +0200 Subject: [PATCH 3/4] fix class --- templates/repo/diff/whitespace_dropdown.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/diff/whitespace_dropdown.tmpl b/templates/repo/diff/whitespace_dropdown.tmpl index c9310fc454c2..47a5ab5533c3 100644 --- a/templates/repo/diff/whitespace_dropdown.tmpl +++ b/templates/repo/diff/whitespace_dropdown.tmpl @@ -15,8 +15,8 @@