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/user | |
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/user')
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index ed44c35377..1ebd20c8b2 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -3,7 +3,7 @@ <div class="item"> <div class="ui floating dropdown link jump"> <span class="text"> - <img class="ui avatar image" src="{{.ContextUser.RelAvatarLink}}" title="{{.ContextUser.Name}}"> + <img class="ui avatar image" src="{{.ContextUser.RelAvatarLink}}" title="{{.ContextUser.Name}}" width="28" height="28"> {{.ContextUser.ShortName 20}} <i class="dropdown icon"></i> </span> @@ -13,12 +13,12 @@ </div> <div class="scrolling menu items"> <a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{else if .PageIsMilestonesDashboard}}milestones{{end}}"> - <img class="ui avatar image" src="{{.SignedUser.RelAvatarLink}}"> + <img class="ui avatar image" src="{{.SignedUser.RelAvatarLink}}" width="28" height="28"> {{.SignedUser.Name}} </a> {{range .Orgs}} <a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item" title="{{.Name}}" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> - <img class="ui avatar image" src="{{.RelAvatarLink}}"> + <img class="ui avatar image" src="{{.RelAvatarLink}}" width="28" height="28"> {{.ShortName 20}} </a> {{end}} |