Skip to content

Commit

Permalink
refactor(ui): Refactor flex layout
Browse files Browse the repository at this point in the history
  • Loading branch information
robinv8 authored and shuashuai committed Apr 7, 2024
1 parent 3bec091 commit 9853a60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion ui/src/components/SideNav/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
width: 1px;
height: 100%;
background-color: var(--bs-border-color);
min-height: calc(100vh - 62px - 74px);
}
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Layout: FC = () => {
}}>
<Header />
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
<div className="position-relative page-wrap">
<div className="position-relative page-wrap d-flex flex-column flex-fill">
{httpStatusCode ? (
<HttpErrorContent httpCode={httpStatusCode} />
) : (
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/SideNavLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import '@/common/sideNavLayout.scss';

const Index: FC = () => {
return (
<Container>
<Row>
<Container className="d-flex flex-column flex-fill">
<Row className="flex-fill">
<SideNav />
<Col xl={10} lg={9} md={12}>
<Outlet />
Expand Down

0 comments on commit 9853a60

Please sign in to comment.