Skip to content

Commit de05a57

Browse files
authored
feat: gradient units to userSpaceOnUse (#1644)
1 parent de80488 commit de05a57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/Card.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ class Card {
123123
? `
124124
<defs>
125125
<linearGradient
126-
id="gradient"
126+
id="gradient"
127127
gradientTransform="rotate(${this.colors.bgColor[0]})"
128+
gradientUnits="userSpaceOnUse"
128129
>
129130
${gradients.map((grad, index) => {
130131
let offset = (index * 100) / (gradients.length - 1);

0 commit comments

Comments
 (0)