]> cat aescling's git repositories - mastodon.git/commitdiff
Fix timeline height on landing page for Safari (#4392)
authorunarist <m.unarist@gmail.com>
Thu, 27 Jul 2017 13:49:56 +0000 (22:49 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 27 Jul 2017 13:49:56 +0000 (15:49 +0200)
`height: 100%` in `align-self: stretch` flexboxes doesn't work on Safari < 11.

https://bugs.webkit.org/show_bug.cgi?id=137730

This workaround uses flexbox instead of `height: 100%` to stretch height.

app/javascript/styles/about.scss

index 9be95c0281aa0c839beb28d6906f34aecb1bb52f..6eddd1322749974628d7b594fa3f6abedaa7e6ad 100644 (file)
   }
 
   #mastodon-timeline {
+    display: flex;
     -webkit-overflow-scrolling: touch;
     -ms-overflow-style: -ms-autohiding-scrollbar;
     font-family: 'mastodon-font-sans-serif', sans-serif;
       padding: 0;
       border-radius: 4px;
       overflow: hidden;
-      height: 100%;
     }
 
     .scrollable {