aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhiifong <i@hiif.ong>2023-06-27 16:45:43 +0800
committerGitHub <noreply@github.com>2023-06-27 08:45:43 +0000
commit1069472c0cd6bd0b6c3b0b1c6c8b9b149aff9ead (patch)
tree9af5b7c36c0ea166a595461edc0ba32cbe26b261
parentc71e8abbc331e2a68186aa11a4797ecd24ff6d27 (diff)
downloadgitea-1069472c0cd6bd0b6c3b0b1c6c8b9b149aff9ead.tar.gz
gitea-1069472c0cd6bd0b6c3b0b1c6c8b9b149aff9ead.zip
Fix input `line-height` cutting off `g` (#25334)
Fix the incomplete display of input text Before: ![image](https://github.com/go-gitea/gitea/assets/89133723/6bd8ca29-a096-46a8-bd23-fb833f45186f) ![image](https://github.com/go-gitea/gitea/assets/89133723/27e51e62-7150-45cd-8606-09317d462d70) After: ![image](https://github.com/go-gitea/gitea/assets/89133723/8d0db5d3-d768-42b4-9a75-0b8816f0a299) ![image](https://github.com/go-gitea/gitea/assets/89133723/4193adc9-b635-4ed6-8e11-715ec5150563) --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
-rw-r--r--web_src/css/base.css5
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css
index 2d649cb511..4e2cd373d7 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -471,6 +471,11 @@ a.label,
padding-top: 15px !important;
}
+/* fix Fomantic's line-height cutting off "g" on Windows Chrome with Segoe UI */
+.ui.input > input {
+ line-height: 1.3;
+}
+
.ui.input.focus > input,
.ui.input > input:focus {
border-color: var(--color-primary);