diff options
author | silverwind <me@silverwind.io> | 2022-09-25 16:01:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-25 22:01:05 +0800 |
commit | 3d92ad8eb9cc255f8153d40e5cbc6a0e9f8fc9eb (patch) | |
tree | 3f630f85ff3faaf63f32b513c6549222e6cccc0c /web_src | |
parent | c4742fbea3b57ac9b24c691207cd6d4db7cb9656 (diff) | |
download | gitea-3d92ad8eb9cc255f8153d40e5cbc6a0e9f8fc9eb.tar.gz gitea-3d92ad8eb9cc255f8153d40e5cbc6a0e9f8fc9eb.zip |
Use native inputs in whitespace dropdown (#20980)
Use native `<input type="radio">` instead of fake icon font. The
`pointer-events: none` is necessary so the link click always takes
effect. Tested in Firefox, Safari and Chrome.
Before:
<img width="305" alt="Screen Shot 2022-08-27 at 20 42 11"
src="https://user-images.githubusercontent.com/115237/187044786-6655c766-c3fb-4672-9e3e-219b3ec4896c.png">
After:
<img width="298" alt="Screen Shot 2022-08-27 at 21 10 05"
src="https://user-images.githubusercontent.com/115237/187044790-33f87741-062e-4744-80b1-d3bd3fd725e3.png">
<img width="302" alt="image"
src="https://user-images.githubusercontent.com/115237/187044872-6c133cea-65ee-4ebd-b18a-a8b38c791565.png">
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/less/helpers.less | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web_src/less/helpers.less b/web_src/less/helpers.less index 5510ee5b23..19477f7ecd 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 */ |