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 {