From e8a7cd4a1d2ee2695ebf6566ada377040681cc5d Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 27 Jun 2023 05:31:18 -0400 Subject: [PATCH] Fix input `line-height` cutting off `g` (#25334) (#25533) Backport #25334 by @hiifong 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: hiifong Co-authored-by: silverwind --- 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 af8fb69e5..c68707d03 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);