Skip to content

Commit 6642893

Browse files
committed
fix(files): simplify mmd file skeleton to match pptx card pattern
1 parent 9cb28da commit 6642893

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -449,19 +449,19 @@ const MermaidDiagram = memo(function MermaidDiagram({
449449
return (
450450
<div className='flex h-full items-center justify-center bg-[var(--surface-1)] p-8'>
451451
<div
452-
className='w-full max-w-[720px] rounded-md bg-[var(--surface-2)] p-8 shadow-medium'
452+
className='w-full max-w-[720px] shrink-0 rounded-md bg-[var(--surface-2)] p-8 shadow-medium'
453453
style={{ aspectRatio: '4 / 3' }}
454454
>
455-
<div className='flex h-full flex-col items-center justify-center gap-5'>
456-
<Skeleton className='h-[40px] w-[140px] rounded-md' />
457-
<Skeleton className='h-[32px] w-[2px]' />
458-
<div className='flex items-center gap-4'>
459-
<Skeleton className='h-[40px] w-[110px] rounded-md' />
460-
<Skeleton className='h-[2px] w-[32px]' />
461-
<Skeleton className='h-[40px] w-[110px] rounded-md' />
455+
<div className='flex h-full flex-col justify-between'>
456+
<div className='flex flex-col gap-3'>
457+
<Skeleton className='h-[18px] w-[45%]' />
458+
<Skeleton className='h-[14px] w-[65%]' />
459+
<Skeleton className='h-[14px] w-[55%]' />
460+
</div>
461+
<div className='flex flex-col gap-2'>
462+
<Skeleton className='h-[14px] w-[75%]' />
463+
<Skeleton className='h-[14px] w-[60%]' />
462464
</div>
463-
<Skeleton className='h-[32px] w-[2px]' />
464-
<Skeleton className='h-[40px] w-[140px] rounded-md' />
465465
</div>
466466
</div>
467467
</div>

0 commit comments

Comments
 (0)