From 85c8c92a0c60b416aa919a6968c79c65307f54a6 Mon Sep 17 00:00:00 2001 From: giggs Date: Fri, 29 Jul 2022 16:05:42 +0000 Subject: [PATCH] Non square avatars no more squeeshed (#76) Avatars don't get squeeshed anymore [#15](https://git.handmade.network/hmn/hmn/issues/15) Please ignore the commit history, still learning git Reviewed-on: https://git.handmade.network/hmn/hmn/pulls/76 Co-authored-by: giggs Co-committed-by: giggs --- public/style.css | 1 + src/templates/src/user_profile.html | 1 + 2 files changed, 2 insertions(+) diff --git a/public/style.css b/public/style.css index d7f6ddc5..07374a5a 100644 --- a/public/style.css +++ b/public/style.css @@ -8512,6 +8512,7 @@ input[type=submit] { .avatar-icon { width: 40px; height: 40px; + object-fit: cover; flex-shrink: 0; border-radius: 100%; overflow: hidden; diff --git a/src/templates/src/user_profile.html b/src/templates/src/user_profile.html index f779a4e2..fa1c9a21 100644 --- a/src/templates/src/user_profile.html +++ b/src/templates/src/user_profile.html @@ -24,6 +24,7 @@ .admin .cover { background: repeating-linear-gradient( -45deg, #ff6c00, #ff6c00 12px, #000000 5px, #000000 25px ); } + {{ end }}