Skip to content

Commit afa58c1

Browse files
committed
fix: Right panel shouldn't cover top nav bar
1 parent 5f0f35f commit afa58c1

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

assets/css/_notification_drawer.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
right: 0;
99
top: 0;
1010
width: 23.5rem;
11-
z-index: $right-panel-z-index;
1211

1312
@media screen and (max-width: $mobile-max-width) {
1413
width: 100%;

assets/css/_properties_panel.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
right: 0;
1010
top: 0;
1111
width: 23.5rem;
12-
z-index: $right-panel-z-index;
12+
z-index: $vpp-z-index;
1313

1414
@media screen and (max-width: $mobile-max-width) {
1515
width: 100vw;
@@ -38,5 +38,5 @@
3838

3939
.m-properties-panel__modal-overlay {
4040
@include modal-overlay;
41-
z-index: 1000;
41+
z-index: $modal-overlay-z-index;
4242
}

assets/css/_swings_view.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
position: absolute;
99
right: 0;
1010
top: 0;
11-
z-index: $right-panel-z-index;
1211

1312
.m-old-close-button {
1413
padding: 1.5rem;

assets/css/app.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ $shuttle-picker-width: 12.6rem;
99
$view-header-height: 2.5rem;
1010
$vpp-location-padding: 1rem;
1111
$navbar-z-index: 1100;
12-
$right-panel-z-index: $navbar-z-index + 100;
12+
$modal-overlay-z-index: $navbar-z-index - 100;
13+
$vpp-z-index: $modal-overlay-z-index + 50;
14+
1315
@import "base";
1416
@import "inter";
1517
@import "ui_kit";

assets/src/components/app.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ const AppRoutes = () => {
6262
<BrowserRoute path="/search" element={<SearchPage />} />
6363
</Routes>
6464
{openView === OpenView.Late ? <LateView /> : null}
65+
<RightPanel selectedVehicleOrGhost={selectedVehicleOrGhost} />
6566
</Nav>
6667
<Modal />
67-
68-
<RightPanel selectedVehicleOrGhost={selectedVehicleOrGhost} />
6968
</div>
7069
</VehiclesByRouteIdProvider>
7170
</div>

0 commit comments

Comments
 (0)