Skip to content

Commit

Permalink
Fixing a few minor display issues that popped after further testing o…
Browse files Browse the repository at this point in the history
…f the new sidebar layout
  • Loading branch information
calebjacob committed Mar 22, 2024
1 parent 719ee49 commit 589f549
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/sidebar-navigation/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export const Sidebar = styled.div<{
left: 0;
width: var(--sidebar-width-expanded);
height: calc(100dvh + 1px);
height: 100dvh;
${overflowContain}
flex-shrink: 0;
Expand Down Expand Up @@ -340,7 +340,7 @@ export const Sidebar = styled.div<{
@media (max-width: ${SMALL_SCREEN_LAYOUT_MAX_WIDTH}px) {
position: fixed;
top: var(--header-height);
height: calc(100dvh + 1px - var(--header-height));
height: calc(100dvh - var(--header-height));
${(p) =>
p.$expanded
Expand Down Expand Up @@ -493,7 +493,7 @@ export const SmallScreenNavigationBackground = styled.div<{
z-index: 999;
top: var(--header-height);
width: 0;
height: calc(100dvh + 1px - var(--header-height));
height: calc(100dvh - var(--header-height));
background: var(--white);
transition: all var(--sidebar-expand-transition-speed);
Expand Down Expand Up @@ -537,7 +537,7 @@ export const Drawer = styled.div<{
top: 0;
left: 68px;
height: calc(100dvh + 1px);
height: 100dvh;
${overflowContain}
width: 0;
Expand All @@ -561,7 +561,7 @@ export const Drawer = styled.div<{
@media (max-width: ${SMALL_SCREEN_LAYOUT_MAX_WIDTH}px) {
position: fixed;
top: var(--header-height);
height: calc(100dvh + 1px - var(--header-height));
height: calc(100dvh - var(--header-height));
box-shadow: none;
${(p) =>
Expand Down
2 changes: 2 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ a:hover {
}

.gateway-page-container {
width: 100%;
flex-grow: 1;
max-width: 1320px;
margin: 0 auto;
padding: var(--gateway-page-container-padding-y) var(--gateway-page-container-padding-x);
Expand Down

0 comments on commit 589f549

Please sign in to comment.