Skip to content

Commit

Permalink
fix: check for overflow: clip support
Browse files Browse the repository at this point in the history
  • Loading branch information
IEduStu committed May 1, 2024
1 parent ff2d9a9 commit b2fdded
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/common/MainNavBars/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
.main-nav-bars-container {
position: relative;
z-index: 0;
overflow: clip;
overflow: hidden;
margin-left: var(--safe-area-inset-left, 0px);
margin-right: var(--safe-area-inset-right, 0px);
width: calc(100% - var(--safe-area-inset-left, 0px) - var(--safe-area-inset-right, 0px));
height: 100%;

@supports (overflow: clip) {
overflow: clip;
}

.horizontal-nav-bar {
position: absolute;
top: 0;
Expand Down Expand Up @@ -58,8 +62,11 @@
}

&.no-overflow {
overflow: clip;
overflow: hidden;

@supports (overflow: clip) {
overflow: clip;
}
}
}
}
Expand Down

0 comments on commit b2fdded

Please sign in to comment.