From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Thu, 29 Jun 2023 02:44:10 +0000 (-0400) Subject: Add fixed width/height to `PostListing` thumbnail parent (#1660) X-Git-Url: http://these/git/%7B%60%24%7BghostArchiveUrl%7D/static/readmes/README.ru.md?a=commitdiff_plain;h=38a109ba9215bd161fb9205e162b24a0afb6bcce;p=lemmy-ui.git Add fixed width/height to `PostListing` thumbnail parent (#1660) * add static width/height for post listing thumbnails * Update src/shared/components/post/post-listing.tsx Co-authored-by: Jay Sitter * make hopefully final tweaks * remove .overflow-hidden --------- Co-authored-by: Jay Sitter Co-authored-by: SleeplessOne1917 --- diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 63c1b47..e5c163b 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -198,9 +198,9 @@ blockquote { .thumbnail { object-fit: cover; - aspect-ratio: 4/3; - width: 100%; - max-height: 6rem; + aspect-ratio: 1/1; + width: 5rem; + height: 5rem; } .thumbnail svg { diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 15b015f..ae6e2f3 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -333,7 +333,7 @@ export class PostListing extends Component { return (