]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix too large announcements not being scrollable in web UI
authorThibG <thib@sitedethib.com>
Fri, 6 Mar 2020 14:20:14 +0000 (15:20 +0100)
committerThibaut Girka <thib@sitedethib.com>
Sun, 8 Mar 2020 19:16:43 +0000 (20:16 +0100)
Port 503eab1c1f101e92f163ed4f8457cac9a6193ffc to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/styles/components/announcements.scss

index eab6c728b3f5dd326af29f0881f51c406e41c958..52feefd3ca790385d640cf1132519a5cc4049b45 100644 (file)
@@ -1,5 +1,6 @@
 .announcements__item__content {
   word-wrap: break-word;
+  overflow-y: auto;
 
   .emojione {
     width: 20px;
     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 {