fix: Skeleton Padding and Width Issue (#9310)
* Fixed the Skeleton Padding and Width Issue * Fix the Icon Bounce on Skeleton --------- Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
7f7d80e653
commit
b7cecfbb66
2 files changed
+8
-5
No files matched your search
@@ -62,12 +62,14 @@ const Skeleton = <T extends keyof JSX.IntrinsicElements | React.FC>({
|
||||
);
|
||||
};
|
||||
|
||||
const SkeletonText: React.FC<SkeletonBaseProps & { invisible?: boolean }> = ({
|
||||
const SkeletonText: React.FC<SkeletonBaseProps & { invisible?: boolean; style?: React.CSSProperties }> = ({
|
||||
className = "",
|
||||
invisible = false,
|
||||
style,
|
||||
}) => {
|
||||
return (
|
||||
<span
|
||||
style={style}
|
||||
className={classNames(
|
||||
`font-size-0 bg-emphasis inline-block animate-pulse rounded-md empty:before:inline-block empty:before:content-['']`,
|
||||
className,
|
||||
|
||||
Reference in new issue
Block a user