]> cat aescling's git repositories - mastodon.git/commitdiff
Add margin to account for Edge disappearing scrollbar (#5522)
authorNolan Lawson <nolan@nolanlawson.com>
Sun, 29 Oct 2017 15:11:32 +0000 (08:11 -0700)
committerYamagishi Kazutoshi <ykzts@desire.sh>
Sun, 29 Oct 2017 15:11:32 +0000 (00:11 +0900)
* Add margin to account for Edge disappearing scrollbar

* Fix 16px margin for DMs and horizontal line

app/javascript/styles/mastodon/components.scss

index 9230fa8baf13071a656a70a563484a0c1242a81d..3f3fe51d3efc41cf13af013612040d3f5d32cd2a 100644 (file)
   border-bottom: 1px solid lighten($ui-base-color, 8%);
   cursor: default;
 
+  @supports (-ms-overflow-style: -ms-autohiding-scrollbar) {
+    // Add margin to avoid Edge auto-hiding scrollbar appearing over content.
+    // On Edge 16 this is 16px and Edge <=15 it's 12px, so aim for 16px.
+    padding-right: 26px; // 10px + 16px
+  }
+
   @keyframes fade {
     0% { opacity: 0; }
     100% { opacity: 1; }