Skip to content

Commit

Permalink
Print/small screen adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
mayagbarnes committed Apr 26, 2024
1 parent cb88417 commit f0337e5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions frontend/app/src/components/Sidebar/styled-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,14 @@ export interface StyledSidebarNavItemsProps {
}

export const StyledSidebarNavItems = styled.ul<StyledSidebarNavItemsProps>(
({ isExpanded, hasSidebarElements, theme }) => {
({ isExpanded, hasSidebarElements }) => {
return {
maxHeight: isExpanded ? "none" : "26vh",
listStyle: "none",
overflow:
isExpanded && hasSidebarElements ? ["auto", "overlay"] : "hidden",
margin: 0,

"@media print": {
paddingTop: theme.spacing.threeXL,
},
paddingBottom: "0.125rem",
}
}
)
Expand Down Expand Up @@ -280,7 +277,7 @@ export const StyledCollapseSidebarButton =
const isLightTheme = hasLightBackgroundColor(theme)

return {
display: showSidebarCollapse ? "auto" : "none",
display: showSidebarCollapse ? "inline" : "none",
transition: "left 300ms",
transitionDelay: "left 300ms",
color: isLightTheme ? theme.colors.gray70 : theme.colors.bodyText,
Expand All @@ -294,7 +291,7 @@ export const StyledCollapseSidebarButton =
},

[`@media (max-width: ${theme.breakpoints.sm})`]: {
display: "auto",
display: "inline",
},
}
}
Expand Down

0 comments on commit f0337e5

Please sign in to comment.