Skip to content

Commit

Permalink
Fix : 화면에 따른 너비 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
JangGusWjd committed Jun 12, 2024
1 parent 506ff38 commit b9d7d82
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/router/RouterApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,32 @@ import Header from "../components/navbar/Header";
import Navbar from "../components/navbar/Navbar";

const ContentContainer = styled.div`
display: flex;
width: 100%;
min-width: 1024px;
// height: 90vh;
margin: 0 auto;
padding: 30px 20px;
background: #fafafa;
// gap: 20px;
`;

const Content = styled.div`
max-width: 2048px;
min-width: 1024px;
display: flex;
gap: 20px;
padding: 0 20px 0 0;
`;

const MainLayout = () => {
return (
<div>
<Header />
<ContentContainer>
<Navbar />
<Outlet />
<Content>
<Navbar />
<Outlet />
</Content>
</ContentContainer>
</div>
);
Expand Down

0 comments on commit b9d7d82

Please sign in to comment.