feat: gradient units to userSpaceOnUse (#1644)
This commit is contained in:
1 parent
de80488f17
commit
de05a574b1
1 file changed
+2
-1
+2
-1
@@ -123,8 +123,9 @@ class Card {
|
|||||||
? `
|
? `
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient
|
<linearGradient
|
||||||
id="gradient"
|
id="gradient"
|
||||||
gradientTransform="rotate(${this.colors.bgColor[0]})"
|
gradientTransform="rotate(${this.colors.bgColor[0]})"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
>
|
>
|
||||||
${gradients.map((grad, index) => {
|
${gradients.map((grad, index) => {
|
||||||
let offset = (index * 100) / (gradients.length - 1);
|
let offset = (index * 100) / (gradients.length - 1);
|
||||||
|
|||||||
Reference in new issue
Block a user