set skeleton size in theme step
This commit is contained in:
@@ -10,12 +10,7 @@ export const Image = ({ imageSrc, compact, extraClasses = '' }) => {
|
||||
|
||||
return (
|
||||
<div className={`${extraClasses} relative w-full relative`}>
|
||||
<SVG
|
||||
forceLoading
|
||||
className="object-cover"
|
||||
url={fullImageSrc}
|
||||
compact={compact}
|
||||
/>
|
||||
<SVG className="object-cover" url={fullImageSrc} compact={compact} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -42,7 +42,8 @@ const SvgInline = (props) => {
|
||||
if (props.compact) {
|
||||
return <Skeleton style={{ paddingBottom: '58%' }} />;
|
||||
}
|
||||
return <Skeleton style={{ paddingBottom: '95%' }} />;
|
||||
// maximum dimensions of cards in SelectCard stage
|
||||
return <Skeleton className="h-[245px] w-[450px]" />;
|
||||
}
|
||||
|
||||
// Render a container div for the shadow DOM
|
||||
|
||||
Reference in New Issue
Block a user