]> cat aescling's git repositories - mastodon.git/commitdiff
Fix too large announcements not being scrollable in web UI (#13211)
authorThibG <thib@sitedethib.com>
Fri, 6 Mar 2020 14:20:14 +0000 (15:20 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2020 14:20:14 +0000 (15:20 +0100)
app/javascript/styles/mastodon/components.scss

index 1be93dfeaaf760349468a689e6e647fd51a0b150..456929f3a67e7aafd1f19fa6169ee9b95a46e52f 100644 (file)
 
 .announcements__item__content {
   word-wrap: break-word;
+  overflow-y: auto;
 
   .emojione {
     width: 20px;
@@ -6676,17 +6677,21 @@ noscript {
     box-sizing: border-box;
     width: 100%;
     padding: 15px;
-    padding-right: 15px + 18px;
     position: relative;
     font-size: 15px;
     line-height: 20px;
     word-wrap: break-word;
     font-weight: 400;
+    max-height: 50vh;
+    overflow: hidden;
+    display: flex;
+    flex-direction: column;
 
     &__range {
       display: block;
       font-weight: 500;
       margin-bottom: 10px;
+      padding-right: 18px;
     }
 
     &__unread {