diff options
author | Giteabot <teabot@gitea.io> | 2023-09-28 14:14:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 06:14:34 +0000 |
commit | b00489886d7428ed38dcbe359bfb623f4f7d9d49 (patch) | |
tree | dfc025c6b177f314f636c4c83ed4411a396aeb53 /web_src | |
parent | 9b698362a333de2c388499f1a64d39545b0263bd (diff) | |
download | gitea-b00489886d7428ed38dcbe359bfb623f4f7d9d49.tar.gz gitea-b00489886d7428ed38dcbe359bfb623f4f7d9d49.zip |
Improve branch list UI (#27319) (#27324)
Backport #27319 by @wxiaoguang
1. Put the `"octicon-shield-lock"` into the flex container, then it
doesn't need a separate flex box
2. Remove some unnecessary `gt-df` helpers
3. Make `btn` button has the same flex behavior as `ui button`
![image](https://github.com/go-gitea/gitea/assets/2114189/60ce75f7-7fac-4157-9c42-91c7dee9300e)
![image](https://github.com/go-gitea/gitea/assets/2114189/ea606baf-6f52-41e1-b964-c4840d3b1529)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/base.css | 1 | ||||
-rw-r--r-- | web_src/css/modules/button.css | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css index 5efb0bfae5..1a4e9d16a1 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -2242,6 +2242,7 @@ table th[data-sortt-desc] .svg { right: 2em; } +.btn, .ui.ui.button, .ui.ui.dropdown, .ui.ui.label, diff --git a/web_src/css/modules/button.css b/web_src/css/modules/button.css index f292231319..0d30249c9c 100644 --- a/web_src/css/modules/button.css +++ b/web_src/css/modules/button.css @@ -30,7 +30,7 @@ color: var(--color-red); } -/* btn is a plain button without any opinionated styling */ +/* btn is a plain button without any opinionated styling, it only uses flex for vertical alignment like ".ui.button" in base.css */ .btn { background: transparent; |