Skip to content

Commit

Permalink
Fixed navigation progress position on md screen (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkirilin authored Apr 3, 2024
1 parent 1435147 commit 0bcd4cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/frontend/src/shared/ui/AppShell/AppShell.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ export const NavigationProgressStyled = styled(LinearProgress, {
width: '100%',

[theme.breakpoints.up('sm')]: {
top: $withHeader ? `${APP_BAR_HEIGHT_SM}px` : 0,
left: $withSidebar ? `${SIDEBAR_DRAWER_WIDTH}px` : 0,
width: $withSidebar ? `calc(100% - ${SIDEBAR_DRAWER_WIDTH}px)` : '100%',
},

[theme.breakpoints.up('md')]: {
top: $withHeader ? `${APP_BAR_HEIGHT_SM}px` : 0,
},
}));

export const HeaderStyled = styled(AppBar)(({ theme }) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/widgets/navbar/ui/NavigationDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const NavigationDrawer: FC<Props> = ({ menuOpened, toggleMenu }) => {
PaperProps={{
sx: {
marginTop: { xs: 0, md: `${APP_BAR_HEIGHT_SM}px` },
width: { xs: '75%', md: `${SIDEBAR_DRAWER_WIDTH}px` },
width: `${SIDEBAR_DRAWER_WIDTH}px`,
},
component: 'nav',
}}
Expand Down

0 comments on commit 0bcd4cc

Please sign in to comment.