Skip to content

Commit c87bfa5

Browse files
authored
better progress bar (#58)
1 parent b917be6 commit c87bfa5

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/components/doe/progressBar.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ const ProgressBar = () => {
2525

2626
return (
2727
<div className={styles.container}>
28-
<MiniTruck
29-
style={{ left: `calc(${progress}% - ${progress * 1.15}px)` }}
30-
// style={{ left: `calc(${progress}% - 32%)` }}
31-
/>
28+
<MiniTruck style={{ left: `calc(${progress}% - 26%)` }} />
3229
<div className={styles.flag}>
3330
<FlagPole />
3431
<Flag style={{ bottom: `calc(${progress * 0.52}% + 13%)` }} />

src/styles/doe/progressBar.module.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111
margin: auto;
1212

1313
> svg {
14-
width: 80px;
14+
width: 21%;
1515
height: auto;
1616
position: relative;
17-
18-
@include lg {
19-
width: 121px;
20-
}
2117
}
2218

2319
@include lg {

0 commit comments

Comments
 (0)