From 7acd5f4e3833d7d7a0d89f6dfaa4446b34775470 Mon Sep 17 00:00:00 2001 From: "Max L." Date: Sat, 25 Nov 2023 01:48:53 +0100 Subject: [PATCH] Improve long post handling --- script.js | 2 +- styles.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index afa5fca..1b25f7b 100644 --- a/script.js +++ b/script.js @@ -194,7 +194,7 @@ const updateCarousel = function(slides, posts) {
-
800 ? `style="font-size: 0.9em;"`: ``}>${postContent}
+
700 ? `style="font-size: ${strip(postContent).length > 1000 ? `0.5`:`0.9`}em;"`: ``}>${postContent}
${post.media_attachments[0] ? `
` : ''}

diff --git a/styles.css b/styles.css index 463fdc9..013fb4b 100644 --- a/styles.css +++ b/styles.css @@ -53,7 +53,7 @@ .carousel .card-text { font-size: 1.6em; overflow: hidden; - max-height: 60vh; + max-height: 50vh; } .card {