From b116df723ff355ab501181eb5c9625d9796afd09 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 7 Aug 2021 16:48:53 -0700 Subject: [PATCH] prevent large text from janking up view --- bookwyrm/static/css/bookwyrm.css | 5 +++++ bookwyrm/templates/discover/large-book.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css index d10fb9b7..8fbdcfc6 100644 --- a/bookwyrm/static/css/bookwyrm.css +++ b/bookwyrm/static/css/bookwyrm.css @@ -29,6 +29,11 @@ body { min-width: 75% !important; } +.clip-text { + max-height: 35em; + overflow: hidden; +} + /** Utilities not covered by Bulma ******************************************************************************/ diff --git a/bookwyrm/templates/discover/large-book.html b/bookwyrm/templates/discover/large-book.html index bcf98cc2..ce341376 100644 --- a/bookwyrm/templates/discover/large-book.html +++ b/bookwyrm/templates/discover/large-book.html @@ -60,7 +60,7 @@ {% include 'snippets/follow_button.html' with user=status.user show_username=True minimal=True %} -
+
{% include "snippets/status/content_status.html" with hide_book=True trim_length=70 hide_more=True %}