Skip to content

Commit 105ad12

Browse files
authored
Merge pull request #2731 from aryanas159/issue-#2730
fix: #2730 The navbar menu is now responsive
2 parents e23bbfb + 251daa4 commit 105ad12

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

client/modules/IDE/components/Header/MobileNav.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ export const Options = styled.div`
9494
ul.opened {
9595
transform: scale(1);
9696
opacity: 1;
97+
max-width: 90vw;
98+
max-height: 90vh;
99+
overflow-y: auto;
97100
}
98101
99102
> div {

client/modules/IDE/components/Header/__snapshots__/Nav.unit.test.jsx.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ exports[`Nav renders dashboard version for mobile 1`] = `
175175
-ms-transform: scale(1);
176176
transform: scale(1);
177177
opacity: 1;
178+
max-width: 90vw;
179+
max-height: 90vh;
180+
overflow-y: auto;
178181
}
179182
180183
.c3 > div {
@@ -816,6 +819,9 @@ exports[`Nav renders editor version for mobile 1`] = `
816819
-ms-transform: scale(1);
817820
transform: scale(1);
818821
opacity: 1;
822+
max-width: 90vw;
823+
max-height: 90vh;
824+
overflow-y: auto;
819825
}
820826
821827
.c3 > div {

0 commit comments

Comments
 (0)