From 67db6b697636221e09536e89ac8600a47f79b5cb Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 11 May 2023 00:27:02 +0200 Subject: RSS icon fixes (#24476) Fix regression from https://github.com/go-gitea/gitea/pull/24471 where CSS rules for `.icon.grey` were removed which were in use by the RSS icons. Gave them their own class instead, removed a wrapper and also fixed vertical alignment on them. Additionally, did a few related fixes on the org header for alignment. Fixes: https://github.com/go-gitea/gitea/issues/24584 Screenshot 2023-05-01 at 22 39 40 Screenshot 2023-05-01 at 22 44 20 Screenshot 2023-05-01 at 22 56 36 Screenshot 2023-05-01 at 22 54 25 Screenshot 2023-05-01 at 22 55 28 --------- Co-authored-by: wxiaoguang --- web_src/css/base.css | 6 ++++++ web_src/css/organization.css | 5 ----- web_src/js/components/RepoBranchTagSelector.vue | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'web_src') diff --git a/web_src/css/base.css b/web_src/css/base.css index c33acbe9c4..aa86d140fe 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -364,6 +364,12 @@ a.label, text-decoration: none !important; } +/* for most cases, we only use our svg icon as inline icon, so we need to make them inline-block and vertical-align: middle */ +svg.svg { + display: inline-block; + vertical-align: middle; +} + .ui.red.labels .label, .ui.ui.ui.red.label, .ui.red.button, diff --git a/web_src/css/organization.css b/web_src/css/organization.css index 25d4940fe5..1b10ba157e 100644 --- a/web_src/css/organization.css +++ b/web_src/css/organization.css @@ -112,11 +112,6 @@ margin-bottom: 0; } -.organization.profile #org-info .ui.header .org-visibility .label { - margin-left: 5px; - margin-top: 2px; -} - .organization.profile #org-info .desc { font-size: 16px; margin-bottom: 10px; diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index 38a375aa85..f02918da9a 100644 --- a/web_src/js/components/RepoBranchTagSelector.vue +++ b/web_src/js/components/RepoBranchTagSelector.vue @@ -39,7 +39,7 @@