mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 23:02:25 -05:00
[frontend] Reduce width of profile img with screen width (#615)
The commit makes the profile image on the profile page reduce in width if the screen width is less then it's normal width while maintaining it's 1:1 aspect ration. Signed-off-by: Sashanoraa <sasha@noraa.gay>
This commit is contained in:
parent
8de9b7a34b
commit
323dbca4f7
3 changed files with 54 additions and 13 deletions
|
|
@ -5,7 +5,9 @@
|
|||
<div class="basic">
|
||||
<a href="{{.account.URL}}" class="displayname">{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}</a>
|
||||
<a href="{{.account.URL}}" class="username">@{{.account.Username}}</a>
|
||||
<a href="{{.account.Avatar}}" class="avatar"><img src="{{.account.Avatar}}"></a>
|
||||
<div class="avatar-container">
|
||||
<a href="{{.account.Avatar}}" class="avatar"><img src="{{.account.Avatar}}"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="detailed">
|
||||
<h2>About @{{.account.Username}}</h2>
|
||||
|
|
@ -44,4 +46,4 @@
|
|||
label.addEventListener("click", () => {setTimeout(update, 1)});
|
||||
});
|
||||
</script>
|
||||
{{ template "footer.tmpl" .}}
|
||||
{{ template "footer.tmpl" .}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue