Skip to content

Commit

Permalink
fix: making menu expanded by default and responsiviness
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaseta committed Dec 23, 2024
1 parent 7543bcd commit ff33d5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/BCHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const BCHeader = () => {

return (
<HeaderContainer
isSideNavExpanded={false}
isSideNavExpanded
render={({ isSideNavExpanded, onClickSideNavExpand }: HearderContainerProps) => (
<Header
aria-label={componentTexts.completeTitle}
Expand Down Expand Up @@ -181,7 +181,6 @@ const BCHeader = () => {
expanded={isSideNavExpanded}
aria-label={componentTexts.sideMenuAriaLabel}
className={`spar-side-nav ${!isSideNavExpanded ? 'spar-side-nav-expanded' : ''}`}
onClick={onClickSideNavExpand}
>
<div className="side-nav-top">
{
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/layout/PrivateLayout/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ header.spar-header:not(.spar-header-expanded) + div.main-container {
}

@media only screen and (max-width: 1055px) {
.main-container {
.main-container,
header.spar-header:not(.spar-header-expanded) + div.main-container {
padding-top: 5rem;
padding-left: 0;
}
Expand Down

0 comments on commit ff33d5a

Please sign in to comment.