fix: made truncate gradient appear just in the end of the truncated component (#7215)

Fixed truncate function
This commit is contained in:
Lucas Oliveira 2025-03-21 19:50:37 -03:00 • committed by GitHub
commit 6c1928adb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -421,7 +421,7 @@ const config = {
content: '""', content: '""',
position: "absolute", position: "absolute",
inset: "0 0 0 0", inset: "0 0 0 0",
background: `linear-gradient(to right, transparent, 75%, ${colorValue})`, background: `linear-gradient(to right, transparent 80%, ${colorValue})`,
}, },
}; };
} else if (typeof colorValue === "object") { } else if (typeof colorValue === "object") {
@ -434,7 +434,7 @@ const config = {
content: '""', content: '""',
position: "absolute", position: "absolute",
inset: "0 0 0 0", inset: "0 0 0 0",
background: `linear-gradient(to right, transparent, ${colorValue.DEFAULT})`, background: `linear-gradient(to right, transparent 80%, ${colorValue.DEFAULT})`,
}, },
}; };
} }