Skip to content

Commit e14c2ae

Browse files
authored
Merge pull request #53 from JacobLinCool/fix/webkit-display-problems
fix: webkit display problems
2 parents d9a5dd2 + e940bb8 commit e14c2ae

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
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`,

src/core/exts/contest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ export function ContestExtension(generator: Generator): Extension {
169169
href: image,
170170
},
171171
style: {
172-
x: 300,
173-
y: 10,
172+
transform: "translate(300px, 10px)",
174173
width: "48px",
175174
height: "48px",
176175
opacity: generator.config.animation !== false ? 0 : 1,

0 commit comments

Comments
 (0)