From 0596452ef4fbf4bb23292108f6b1e8f95edc95bc Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:49:35 +0300 Subject: [PATCH] fix(square avatar): make focus on top of picture --- Web/static/css/avatar.1.css | 7 +++++++ Web/static/css/main.css | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Web/static/css/avatar.1.css b/Web/static/css/avatar.1.css index d9a7cadb..4731bfbd 100644 --- a/Web/static/css/avatar.1.css +++ b/Web/static/css/avatar.1.css @@ -4,6 +4,7 @@ table.User > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-chil width: 50px; height: 50px; object-fit: cover; + object-position: top; } .post > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1) > img:nth-child(1) @@ -11,6 +12,7 @@ table.User > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-chil width: 50px; height: 50px; object-fit: cover; + object-position: top; } div.content > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1) > img:nth-child(1) @@ -18,6 +20,7 @@ div.content > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth width: 75px; height: 75px; object-fit: cover; + object-position: top; } .crp-entry--image > img @@ -25,6 +28,7 @@ div.content > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth width: 48px; height: 48px; object-fit: cover; + object-position: top; } .crp-entry--message---av > img, @@ -33,16 +37,19 @@ div.content > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth width: 42px; height: 42px; object-fit: cover; + object-position: top; } .cCompactAvatars { width: 30px !important; height: 30px !important; object-fit: cover; + object-position: top; } .profile_thumb > a > img { width: 50px; height: 50px; object-fit: cover; + object-position: top; } diff --git a/Web/static/css/main.css b/Web/static/css/main.css index 69147a03..e5591d13 100644 --- a/Web/static/css/main.css +++ b/Web/static/css/main.css @@ -3143,7 +3143,7 @@ body.article .floating_sidebar, body.article .page_content { position: absolute; z-index: 128; width: 100%; - height: 100vh; + min-height: 100vh; padding: 20px; box-sizing: border-box; background-color: #fff;