Skip to content

Commit e940bb8

Browse files
committed
fix: webkit total solved ring prop unit
1 parent b2de06b commit e940bb8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/elements.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,19 @@ export function TotalSolved(total: number, solved: number) {
141141
new Item("circle", {
142142
id: "total-solved-bg",
143143
style: {
144-
cx: 40,
145-
cy: 40,
146-
r: 40,
144+
cx: "40px",
145+
cy: "40px",
146+
r: "40px",
147147
stroke: "var(--bg-1)",
148148
"stroke-width": "6px",
149149
},
150150
}),
151151
new Item("circle", {
152152
id: "total-solved-ring",
153153
style: {
154-
cx: 40,
155-
cy: 40,
156-
r: 40,
154+
cx: "40px",
155+
cy: "40px",
156+
r: "40px",
157157
transform: "rotate(-90deg)",
158158
"transform-origin": "40px 40px",
159159
"stroke-dasharray": `${(80 * Math.PI * solved) / total} 10000`,

0 commit comments

Comments
 (0)