diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index abcc227be..8f67f1cee 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -4,15 +4,17 @@
+
{{if eq .SignedUserName .Owner.Name}} - + {{avatar .Owner 290}} {{else}} - + {{avatar .Owner 290}} {{end}} +
{{if .Owner.FullName}}{{.Owner.FullName}}{{end}} {{.Owner.Name}} diff --git a/web_src/less/_user.less b/web_src/less/_user.less index e19298681..4576d1c9e 100644 --- a/web_src/less/_user.less +++ b/web_src/less/_user.less @@ -44,27 +44,20 @@ } } } - #profile-avatar { background: none; padding: 1rem 1rem .25rem; - + justify-content: center; img { width: 100%; height: auto; object-fit: contain; margin: 0; - } - - @media @mediaSm { - height: 250px; - overflow: hidden; - - img { - max-height: 767px; - max-width: 767px; + @media @mediaSm { + width: 30vw; } } + } @media @mediaSm {