From 2dc87d389d0489783127830e9d3c600d9dab9913 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Wed, 17 Jul 2024 12:41:51 +0500 Subject: [PATCH 1/2] [v7.0/forgejo] ui: fix issue labels * Fixes https://codeberg.org/forgejo/forgejo/issues/4522 * Fixes https://codeberg.org/forgejo/forgejo/issues/4522#issuecomment-2095542 * Fixes https://codeberg.org/forgejo/forgejo/issues/4544 * Fixes regression of https://codeberg.org/forgejo/forgejo/pulls/4486 * Fixes regression of some cherry-pick * Fixes an overflow that wasn't even reported * Revert changes done in https://codeberg.org/forgejo/forgejo/pulls/4486. * Apply changes proposed in https://codeberg.org/forgejo/forgejo/issues/3875#issuecomment-1840611. * Introduce new label `ugc-labels` to mark ui labels that are named by users and therefore need special care. Currently the generic label classes are used for too many things to work with them directly without affecting other UI. --- .../issue/labels/labels_selector_field.tmpl | 2 +- .../repo/issue/labels/labels_sidebar.tmpl | 20 +++++++++---------- tests/integration/issue_test.go | 17 +++------------- web_src/css/modules/label.css | 9 +++++++++ 4 files changed, 22 insertions(+), 26 deletions(-) diff --git a/templates/repo/issue/labels/labels_selector_field.tmpl b/templates/repo/issue/labels/labels_selector_field.tmpl index e5f15caca5..b4aee41da5 100644 --- a/templates/repo/issue/labels/labels_selector_field.tmpl +++ b/templates/repo/issue/labels/labels_selector_field.tmpl @@ -5,7 +5,7 @@ {{svg "octicon-gear" 16 "tw-ml-1"}} {{end}} -