diff options
author | Daniel Aleksandersen <code@daniel.priv.no> | 2020-09-02 20:42:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 14:42:28 -0400 |
commit | 72eeb13e4d11efea2c71255c8d1f72d8a501fc40 (patch) | |
tree | 42b577472cb9642e68975c3bd06a1f3ed427710e /templates/user/profile.tmpl | |
parent | 714ab71ddc4260937b1480519d453d2dc4e77dd6 (diff) | |
download | gitea-72eeb13e4d11efea2c71255c8d1f72d8a501fc40.tar.gz gitea-72eeb13e4d11efea2c71255c8d1f72d8a501fc40.zip |
Set avatar image dimensions (#12654)
Set the avatar image dimensions to help browsers
avoid layout reflows. Helps page load performance and
user experience (less content jank).
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/user/profile.tmpl')
-rw-r--r-- | templates/user/profile.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 2de8dc95b5..ecfc7e6544 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -6,11 +6,11 @@ <div class="ui card"> {{if eq .SignedUserName .Owner.Name}} <a class="image poping up" href="{{AppSubUrl}}/user/settings" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-variation="inverted tiny" data-position="bottom center"> - <img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}"/> + <img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}" height="290" width="290"/> </a> {{else}} <span class="image"> - <img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}"/> + <img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}" height="290" width="290"/> </span> {{end}} <div class="content wrap"> |