Skip to content

Commit

Permalink
Fix overlap with AlertBanner on mobile (#2343)
Browse files Browse the repository at this point in the history
  • Loading branch information
heatlikeheatwave authored Feb 16, 2024
1 parent 3958d50 commit e47c785
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@
left: -150vw;
overflow-y: auto;
position: fixed;
top: var(--sticky-bars-height);
width: 100%;
z-index: 2;
@media (--dev-dot-show-mobile-menu) {
top: auto;
}
@media (--dev-dot-hide-mobile-menu) {
top: var(--sticky-bars-height);
}
}

.mobileAuthenticationControlsWrap {
Expand Down
5 changes: 1 addition & 4 deletions src/layouts/base-layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ const BaseLayout = ({
return (
<CommandBarProvider>
{alertBannerData.enabled && (
<AlertBanner
{...(alertBannerData.data as AlertBannerProps)}
hideOnMobile
/>
<AlertBanner {...(alertBannerData.data as AlertBannerProps)} />
)}
<CoreDevDotLayoutWithTheme>
<div className={classNames(s.root, className)} data-layout="base-new">
Expand Down

0 comments on commit e47c785

Please sign in to comment.