Skip to content

Commit

Permalink
Update src/component/ProgressBar/ProgressBar.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
klmhyeonwoo authored Jul 6, 2024
1 parent 4582a72 commit 05bbe78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/ProgressBar/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function ProgressBar({ curPage, lastPage }: ProgressBarProps) {
`}>
<div css={css`
position: absolute;
width: ${100 - (lastPage - curPage) * 10}%;
width: ${(curPage / lastPage) * 100}%;
background-color: #608DFF;
height: inherit;
border-radius: ${lastPage === curPage ? `50px` : `50px 0 0 50px`};
Expand Down

0 comments on commit 05bbe78

Please sign in to comment.