From: silverwind Date: Mon, 15 Apr 2024 01:04:02 +0000 (+0200) Subject: Revert 100% label max-width (#30481) X-Git-Tag: v1.22.0-rc1~109 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ef3941f2ebe9d8353f9546e7df00b24092c71cb7;p=gitea.git Revert 100% label max-width (#30481) Partial revert of https://github.com/go-gitea/gitea/pull/30479 It's causing problems at least here: https://github.com/go-gitea/gitea/pull/30344#discussion_r1564895591 --------- Co-authored-by: wxiaoguang --- diff --git a/templates/devtest/label.tmpl b/templates/devtest/label.tmpl index 77590715a1..c4b52a3e23 100644 --- a/templates/devtest/label.tmpl +++ b/templates/devtest/label.tmpl @@ -20,7 +20,7 @@ very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label
- very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label + very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong label
diff --git a/web_src/css/modules/label.css b/web_src/css/modules/label.css index 696080b667..2032b2c84b 100644 --- a/web_src/css/modules/label.css +++ b/web_src/css/modules/label.css @@ -6,7 +6,6 @@ align-items: center; gap: .25rem; min-width: 0; - max-width: 100%; /* since we are using "flex" to align label contents, we also need to limit the x-axis, a label shouldn't be wider than 100% */ vertical-align: middle; line-height: 1; background: var(--color-label-bg);