diff options
author | silverwind <me@silverwind.io> | 2020-01-26 17:13:38 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2020-01-26 18:13:38 +0200 |
commit | c640a1818a975a0fb4819192a22eccb58012fbe6 (patch) | |
tree | cd844136e92be1e3ea1295dcb01fa1ceaad4a034 /templates/base | |
parent | 87e143800531d5a22daedd61d105853277bcbb40 (diff) | |
download | gitea-c640a1818a975a0fb4819192a22eccb58012fbe6.tar.gz gitea-c640a1818a975a0fb4819192a22eccb58012fbe6.zip |
add explicit dimensions to navbar avatar (#9986)
* add explicit dimensions to navbar avatar
this prevents a temporary layout change when navigating between
pages with cache disabled.
* also add dimensions on frontpage
Co-authored-by: Lauris BH <lauris@nix.lv>
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 5f1b9405d9..4219e33775 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -78,7 +78,7 @@ <div class="ui dropdown jump item poping up" tabindex="-1" data-content="{{.i18n.Tr "user_profile_and_more"}}" data-variation="tiny inverted"> <span class="text"> - <img class="ui tiny avatar image" src="{{.SignedUser.RelAvatarLink}}"> + <img class="ui tiny avatar image" width="24" height="24" src="{{.SignedUser.RelAvatarLink}}"> <span class="sr-only">{{.i18n.Tr "user_profile_and_more"}}</span> <span class="mobile-only">{{.SignedUser.Name}}</span> <i class="fitted octicon octicon-triangle-down not-mobile" tabindex="-1"></i> |