Skip to content

Commit

Permalink
fix: 네비게이션바 너비 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaerocket committed Oct 23, 2023
1 parent 45c21e3 commit 9818d77
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
25 changes: 14 additions & 11 deletions src/app/setting/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,25 @@ const menu = [

export default function setting() {
return (
<Container>
<Title>설정</Title>
<main>
{menu.map(({ label, href }, index) => (
<Link key={index} href={href}>
<span>{label}</span>
<ArrowIcon />
</Link>
))}
</main>
<>
<Container>
<Title>설정</Title>
<main>
{menu.map(({ label, href }, index) => (
<Link key={index} href={href}>
<span>{label}</span>
<ArrowIcon />
</Link>
))}
</main>
</Container>
<NavigationBar />
</Container>
</>
);
}

const Container = styled.div`
width: 390px;
padding: 0 16px;
> main {
padding-top: 16px;
Expand Down
5 changes: 2 additions & 3 deletions src/components/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ export default function NavigationBar() {
}

const Container = styled.nav`
position: fixed;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
width: 390px;
height: 88px;
display: flex;
justify-content: space-around;
Expand Down

0 comments on commit 9818d77

Please sign in to comment.