From 15fc2b76f95bc3c83ce3f5ee0a8142cde5fa6b0b Mon Sep 17 00:00:00 2001 From: Haelwenn Monnier Date: Thu, 27 Sep 2018 15:04:33 +0000 Subject: Show "read more" link on overly long in-stream statuses (#8205) Show "read more" link on overly long in-stream statuses --- app/javascript/styles/mastodon/components.scss | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'app/javascript/styles') diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index c73c220d4..c57f99fea 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -631,11 +631,13 @@ .status__content, .reply-indicator__content { + position: relative; font-size: 15px; line-height: 20px; word-wrap: break-word; font-weight: 400; overflow: hidden; + text-overflow: ellipsis; white-space: pre-wrap; padding-top: 2px; color: $primary-text-color; @@ -721,6 +723,26 @@ } } +.status__content.status__content--collapsed { + max-height: 20px * 15; // 15 lines is roughly above 500 characters +} + +.status__content__read-more-button { + display: block; + font-size: 15px; + line-height: 20px; + color: lighten($ui-highlight-color, 8%); + border: 0; + background: transparent; + padding: 0; + padding-top: 8px; + + &:hover, + &:active { + text-decoration: underline; + } +} + .status__content__spoiler-link { display: inline-block; border-radius: 2px; -- cgit