aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/app/game/page.styles.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app/game/page.styles.ts b/src/app/game/page.styles.ts
index 9b10d3b..fdb743e 100644
--- a/src/app/game/page.styles.ts
+++ b/src/app/game/page.styles.ts
@@ -219,13 +219,15 @@ export const LineTimingBar = styled.div`
export const LineTimingFill = styled.div.attrs<{ $pct: number }>((props) => ({
style: {
- width: `${props.$pct}%`,
+ transform: `scaleX(${props.$pct / 100})`,
},
}))<{ $pct: number }>`
height: 100%;
+ width: 100%;
border-radius: 2px;
background: #7c3aed;
- transition: width 0.1s linear;
+ transform-origin: left;
+ will-change: transform;
`;
export const CharRow = styled.div`
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage