diff options
author | zeripath <art27@cantab.net> | 2022-07-06 18:33:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-06 18:33:10 +0100 |
commit | 1e43a885780c0f04cca3e891f43902d573f1d993 (patch) | |
tree | a63270baa8d3c7347f84f31df2b2432d390a1216 /templates/base | |
parent | acbbbbfaf6919dee07608c0b4cf0456f4a7e538c (diff) | |
download | gitea-1e43a885780c0f04cca3e891f43902d573f1d993.tar.gz gitea-1e43a885780c0f04cca3e891f43902d573f1d993.zip |
Refix notification bell placement (#20251)
The use of `m-4 text black` for the notification bell results in this
icon being shifted upwards. Instead we should use the `item` class but
adjust `not-mobile` and `mobile-only` to make their `display: none`
settings `!important`.
(As an aside: This is probably one of the only times we should use
`!important` in our less files and the rest should be avoided or
removed.)
Ref #20069
Revert #20236
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/head_navbar.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 111cc02f93..91529dc163 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -114,7 +114,7 @@ </div> </div> - <a href="{{AppSubUrl}}/notifications" class="m-4 text black tooltip not-mobile" data-content='{{.locale.Tr "notifications"}}'> + <a href="{{AppSubUrl}}/notifications" class="item tooltip not-mobile" data-content='{{.locale.Tr "notifications"}}'> <span class="text"> <span class="fitted">{{svg "octicon-bell"}}</span> <span class="ui red label {{if not $notificationUnreadCount}}hidden{{end}} notification_count"> |