Skip to content

Commit 72eeb13

Browse files
da2xlafrikslunnytechknowlogick
authored
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>
1 parent 714ab71 commit 72eeb13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/user/profile.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<div class="ui card">
77
{{if eq .SignedUserName .Owner.Name}}
88
<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">
9-
<img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}"/>
9+
<img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}" height="290" width="290"/>
1010
</a>
1111
{{else}}
1212
<span class="image">
13-
<img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}"/>
13+
<img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}" height="290" width="290"/>
1414
</span>
1515
{{end}}
1616
<div class="content wrap">

0 commit comments

Comments
 (0)