Improve long post handling

This commit is contained in:
Max L. 2023-11-25 01:48:53 +01:00
parent 8efbafef3c
commit 7acd5f4e38
No known key found for this signature in database
GPG key ID: 2F963B95632B8467
2 changed files with 2 additions and 2 deletions

View file

@ -194,7 +194,7 @@ const updateCarousel = function(slides, posts) {
</div>
<hr>
<div class="row align-items-center vertical-align-center">
<div class="${post.media_attachments[0] ? `col-md-6` : `col-md-12`}"><div class="card-text" ${strip(postContent).length > 800 ? `style="font-size: 0.9em;"`: ``}>${postContent}</div></div>
<div class="${post.media_attachments[0] ? `col-md-6` : `col-md-12`}"><div class="card-text" ${strip(postContent).length > 700 ? `style="font-size: ${strip(postContent).length > 1000 ? `0.5`:`0.9`}em;"`: ``}>${postContent}</div></div>
${post.media_attachments[0] ? `<div class="col-md-6"><img src="${post.media_attachments[0].url}" class="card-img-bottom" align="center"> </div>` : ''}
</div>
<hr>

View file

@ -53,7 +53,7 @@
.carousel .card-text {
font-size: 1.6em;
overflow: hidden;
max-height: 60vh;
max-height: 50vh;
}
.card {