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 = () => { export const DocumentCardPlaceholder = () => {
return ( return (
<div className={styles.cardWrap}> <div className={styles.cardWrap}>
<header> <a>
<IconDocument /> <header>
</header> <IconDocument />
<main> </header>
<div style={{ marginBottom: 12 }}> <main>
<Skeleton.Title style={{ width: 160 }} /> <div style={{ marginBottom: 12 }}>
</div> <Skeleton.Title style={{ width: 160 }} />
<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> </div>
</Text> <div>
</footer> <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> </div>
); );
}; };