]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Correct privacymsg z-index to avoid hover dropdown on scroll
authorKimsible <kimsible@users.noreply.github.com>
Wed, 21 Jul 2021 11:33:14 +0000 (13:33 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Wed, 21 Jul 2021 13:33:59 +0000 (15:33 +0200)
client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss
client/src/sass/bootstrap.scss
client/src/sass/include/_variables.scss

index b42be318f80f6b6cc8275ead296a11335a50e2e3..a6479c7ecd01f917ee2de2a3f9145fe4c4173f2f 100644 (file)
   }
 }
 
+// Avoid higher z-index when overlay on touchscreens
+:host-context(.menu-open) {
+  .privacy-concerns {
+    z-index: z(overlay) - 1;
+  }
+}
+
 // Or if we are in the small view
 @media screen and (max-width: $small-view) {
   .privacy-concerns {
index 586f558feeb6074cd744992248bbec9faff4e86c..4f6e08c1bbe802865dfb43e26bb261ea98fa3e73 100644 (file)
@@ -214,7 +214,7 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
         content: '';
         display: block;
         position: fixed;
-        z-index: z('menu') - 1;
+        z-index: z(overlay);
       }
     }
   }
index 396dae0e284899c468205a9a9aa02d65d781f73f..e0a4c7d3fa1bbe6149cfe4feb1f3ad0651a34cd3 100644 (file)
@@ -159,8 +159,8 @@ $variables: (
 
 $zindex: (
   miniature       :    10,
-  privacymsg      :    20,
   sub-menu        : 12500,
+  overlay         : 12550,
   menu            : 12600,
   search-typeahead: 12650,
   popover         : 13000,
@@ -169,6 +169,7 @@ $zindex: (
   modal           : 16000,
   dropdown        : 17000,
   help-popover    : 17000,
+  privacymsg      : 17500,
   header          : 17500,
   notification    : 18000,
   hotkeys         : 19000