diff options
author | Mike L <cl.jeremy@qq.com> | 2021-02-25 13:35:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 13:35:43 +0100 |
commit | 4172b1955fabe79e5918145f4ad1b00911390de0 (patch) | |
tree | 2b84b1f01fdfabbfbeb7ccc586b6835126e71030 /web_src/less | |
parent | 8f4d55452a0a15b3af5d308ccef74b85d7c22422 (diff) | |
download | gitea-4172b1955fabe79e5918145f4ad1b00911390de0.tar.gz gitea-4172b1955fabe79e5918145f4ad1b00911390de0.zip |
Fix dashboard UI bugs and more (#14767)
This PR fixes a few UI bugs I spontaneously encountered:
- Fixes emojis in repo titles getting head-cut and tail-cut in dashboard feed due to introduction of 1.25 em emojis at 1 em line-height, by simply using the original 1 3/7 em value of `semantic.css`
- Fixes regression (too long repo names should be capped to 70%) in #13828 due to flex children not respecting properties like `overflow: hidden;`, and removes a block of dead style code
- Follow-up to #14761, removes extraneous code for top navbar and correct right margin for Font Awesome
- Fixes color emphasis inversion in arc-green theme for top right buttons (edit, delete) on commit view boxes
Diffstat (limited to 'web_src/less')
-rw-r--r-- | web_src/less/_base.less | 4 | ||||
-rw-r--r-- | web_src/less/_dashboard.less | 21 | ||||
-rw-r--r-- | web_src/less/_repository.less | 5 |
3 files changed, 5 insertions, 25 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 74455cee06..8c99fa4349 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -603,10 +603,6 @@ a.ui.card:hover, margin-right: 0; } - .svg { - margin-right: .75em; - } - .searchbox { background-color: #f4f4f4 !important; diff --git a/web_src/less/_dashboard.less b/web_src/less/_dashboard.less index d5fac494f1..c8659a92a1 100644 --- a/web_src/less/_dashboard.less +++ b/web_src/less/_dashboard.less @@ -98,8 +98,6 @@ margin-left: .35rem; } - line-height: 1.2; - > .ui.grid { margin-left: auto; margin-right: auto; @@ -181,23 +179,8 @@ margin-right: .25rem; } - .repo-owner-name-list { - .item-name { - max-width: 70%; - margin-bottom: -4px; - } - } - - #collaborative-repo-list { - .owner-and-repo { - max-width: 80%; - margin-bottom: -5px; - } - - .owner-name { - max-width: 120px; - margin-bottom: -5px; - } + .repo-owner-name-list .item-name { + max-width: 70%; } } } diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 88a1a38bb6..7273f5718d 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -383,7 +383,7 @@ padding: 5px; margin-left: 5px; line-height: 1; - color: #767676; + color: var(--color-text); vertical-align: middle; background: transparent; border: 0; @@ -399,7 +399,8 @@ } .btn-octicon.disabled { - color: #bbbbbb; + color: inherit; + opacity: var(--opacity-disabled); cursor: default; } |