From ff306281b948e11bf566648d68a6e89b17ef7a20 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 15 Apr 2024 03:04:02 +0200 Subject: [PATCH] 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 (cherry picked from commit ef3941f2ebe9d8353f9546e7df00b24092c71cb7) --- templates/devtest/label.tmpl | 2 +- web_src/css/modules/label.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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);