Skip to content

Commit

Permalink
fix: set dialog on top of everything
Browse files Browse the repository at this point in the history
but the drawers
Fix #649
  • Loading branch information
12rambau committed Dec 12, 2022
1 parent a16f9cf commit c39497d
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion sepal_ui/frontend/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Customization of the provided css from the different libs used by sepal_ui
*/

/* replace the panel elements on top */
/* replace the map panel elements on top */
.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
Expand Down Expand Up @@ -37,7 +37,30 @@ header.v-app-bar {
z-index: 801 !important;
}

/* make sure the dialog remain on top of the bars (header and footer) */
.v-dialog__content {
z-index: 802 !important;
}

/* make sure navigation drawers are always visibles when they exist */
nav.v-navigation-drawer {
z-index: 900 !important;
}

/* create extra position for the leaflet map controls */
.leaflet-center {
left: 50%;
transform: translate(-50%, 0%);
}

.leaflet-middle {
top: 50%;
position: absolute;
z-index: 1000;
pointer-events: none;
transform: translate(0%, -50%);
}

.leaflet-center.leaflet-middle {
transform: translate(-50%, -50%);
}

0 comments on commit c39497d

Please # to comment.