diff --git a/src/components/Menubar/DesktopMenubar.tsx b/src/components/Menubar/DesktopMenubar.tsx index ac82186..53be182 100644 --- a/src/components/Menubar/DesktopMenubar.tsx +++ b/src/components/Menubar/DesktopMenubar.tsx @@ -9,6 +9,7 @@ import { SharedMenubarProps } from './Menubar' import { NavigationControls } from './components/NavigationControls' import { SelectView } from './SelectView' import { UserMenu } from './UserMenu' +import { useState } from 'react' export const DesktopMenubar: React.FC = ({ calendarRef, @@ -33,6 +34,8 @@ export const DesktopMenubar: React.FC = ({ const { t } = useI18n() const theme = useTheme() + const [isSearchExpanded, setIsSearchExpanded] = useState(false) + return (
= ({ -
-
-

{dateLabel}

+ {!isSearchExpanded && ( +
+
+

{dateLabel}

+
-
+ )}
-
- +
+
diff --git a/src/components/Menubar/EventSearchBar.tsx b/src/components/Menubar/EventSearchBar.tsx index b9b5dd5..8ddd0bf 100644 --- a/src/components/Menubar/EventSearchBar.tsx +++ b/src/components/Menubar/EventSearchBar.tsx @@ -66,7 +66,7 @@ const SearchBar: React.FC<{ md: '35vw', xl: '35vw', '@media (min-width: 2000px)': { - width: '55vw' + maxWidth: '55vw' } } @@ -230,9 +230,9 @@ const SearchBar: React.FC<{ diff --git a/src/components/Menubar/Menubar.styl b/src/components/Menubar/Menubar.styl index 415310c..3fd1676 100644 --- a/src/components/Menubar/Menubar.styl +++ b/src/components/Menubar/Menubar.styl @@ -41,6 +41,7 @@ height 60px min-height 60px background-color #fff + overflow hidden &--mobile position sticky @@ -101,6 +102,9 @@ display flex justify-content flex-end align-items center + flex 1 + overflow hidden + .current-date-time font-family Roboto @@ -119,3 +123,6 @@ body.fullscreen-view .search-container .search-container width 100% + min-width 0 + display flex + justify-content flex-end