client: update DocumentCardPlaceholder

This commit is contained in:
fantasticit 2022-05-18 16:09:22 +08:00
parent 2d010794da
commit df7757a0b7
1 changed files with 28 additions and 26 deletions

View File

@ -82,33 +82,35 @@ export const DocumentCard: React.FC<{ document: IDocument }> = ({ document }) =>
export const DocumentCardPlaceholder = () => {
return (
<div className={styles.cardWrap}>
<header>
<IconDocument />
</header>
<main>
<div style={{ marginBottom: 12 }}>
<Skeleton.Title style={{ width: 160 }} />
</div>
<div>
<Text type="tertiary" size="small">
<Space>
<Avatar size="extra-extra-small">
<IconUser />
</Avatar>
<Skeleton.Paragraph rows={1} style={{ width: 100 }} />
</Space>
</Text>
</div>
</main>
<footer>
<Text type="tertiary" size="small">
<div style={{ display: 'flex' }}>
<Skeleton.Paragraph rows={1} style={{ width: 100 }} />
<a>
<header>
<IconDocument />
</header>
<main>
<div style={{ marginBottom: 12 }}>
<Skeleton.Title style={{ width: 160 }} />
</div>
</Text>
</footer>
<div>
<Text type="tertiary" size="small">
<Space>
<Avatar size="extra-extra-small">
<IconUser />
</Avatar>
<Skeleton.Paragraph rows={1} style={{ width: 100 }} />
</Space>
</Text>
</div>
</main>
<footer>
<Text type="tertiary" size="small">
<div style={{ display: 'flex' }}>
<Skeleton.Paragraph rows={1} style={{ width: 100 }} />
</div>
</Text>
</footer>
</a>
</div>
);
};