fix: made truncate gradient appear just in the end of the truncated component (#7215)
Fixed truncate function
This commit is contained in:
parent
fbe5666c81
commit
6c1928adb6
1 changed files with 2 additions and 2 deletions
|
|
@ -421,7 +421,7 @@ const config = {
|
|||
content: '""',
|
||||
position: "absolute",
|
||||
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") {
|
||||
|
|
@ -434,7 +434,7 @@ const config = {
|
|||
content: '""',
|
||||
position: "absolute",
|
||||
inset: "0 0 0 0",
|
||||
background: `linear-gradient(to right, transparent, ${colorValue.DEFAULT})`,
|
||||
background: `linear-gradient(to right, transparent 80%, ${colorValue.DEFAULT})`,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue