Make menu stackable on mobile
This commit is contained in:
parent
df0466c6f1
commit
eda3bf2688
|
@ -120,6 +120,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
@media @mobile {
|
||||
.menu.menu {
|
||||
> :global(.ui.container) {
|
||||
height: @menuHeightMobile;
|
||||
align-items: stretch;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.banner {
|
||||
padding: 8px;
|
||||
z-index: 100;
|
||||
|
|
|
@ -95,7 +95,7 @@ const App = connect((state) => ({ login: state.login }))(function App({
|
|||
<title>OpenBikeSensor Portal</title>
|
||||
</Helmet>
|
||||
{config?.banner && <Banner {...config.banner} />}
|
||||
<Menu className={styles.menu}>
|
||||
<Menu className={styles.menu} stackable>
|
||||
<Container>
|
||||
<Link
|
||||
to="/"
|
||||
|
|
|
@ -48,7 +48,10 @@
|
|||
@media @mobile {
|
||||
.mapContainer {
|
||||
height: auto;
|
||||
min-height: calc(100vh - @menuHeight);
|
||||
min-height: calc(100vh - @menuHeightMobile);
|
||||
&.hasBanner {
|
||||
height: calc(100vh - @menuHeightMobile - 50px);
|
||||
}
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
@borderColor: #e0e0e0;
|
||||
|
||||
@menuHeight: 50px;
|
||||
@menuHeightMobile: 220px;
|
||||
|
||||
@mobile: ~'screen and (max-width: 767px)';
|
||||
@desktop: ~'screen and (min-width: 768px)';
|
||||
|
|
Loading…
Reference in a new issue