Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Correct privacymsg z-index to avoid hover dropdown on scroll

Kimsible435990290a61
diff --git a/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss b/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss
index b42be318f8..a6479c7ecd 100644
--- a/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss
+++ b/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss
@@ -25,6 +25,13 @@
}
}
+// 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 {
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss
index 586f558fee..4f6e08c1bb 100644
--- a/client/src/sass/bootstrap.scss
+++ b/client/src/sass/bootstrap.scss
@@ -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);
}
}
}
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss
index 396dae0e28..e0a4c7d3fa 100644
--- a/client/src/sass/include/_variables.scss
+++ b/client/src/sass/include/_variables.scss
@@ -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