From 1069472c0cd6bd0b6c3b0b1c6c8b9b149aff9ead Mon Sep 17 00:00:00 2001 From: hiifong Date: Tue, 27 Jun 2023 16:45:43 +0800 Subject: [PATCH] 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 Co-authored-by: Giteabot --- web_src/css/base.css | 5 +++++ 1 file changed, 5 insertions(+) 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);