From 1d20aa0644ab94c1e7d42b0031cd26607a880673 Mon Sep 17 00:00:00 2001 From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Tue, 27 Jun 2023 17:31:00 -0400 Subject: [PATCH] add static width/height for post listing thumbnails --- src/assets/css/main.css | 6 +++--- src/shared/components/post/post-listing.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 98c3847..37385a5 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -1433,7 +1433,7 @@ export class PostListing extends Component { )}
-
+
{this.thumbnail()}