Skip to content

Commit aecc62d

Browse files
committed
优化骨架屏
1 parent 5b5a13d commit aecc62d

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

components/navigation/LinkGridSkeleton.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,33 @@ export const LinkGridSkeleton: React.FC = () => {
1515
{Array.from({ length: 12 }).map((_, index) => (
1616
<Card
1717
key={index}
18-
className="transition-theme"
18+
className="transition-theme h-22"
1919
style={{
20-
height: 120,
2120
backgroundColor: 'var(--background)',
2221
borderColor: 'var(--border)',
2322
}}
2423
styles={{
2524
body: {
2625
height: '100%',
2726
display: 'flex',
28-
flexDirection: 'column',
2927
alignItems: 'center',
30-
justifyContent: 'center',
31-
padding: '16px',
28+
padding: '0',
29+
paddingRight: '16px',
3230
}
3331
}}
3432
>
35-
<Skeleton
36-
active
37-
avatar={{ size: 48, shape: 'square' }}
33+
<Skeleton.Avatar
34+
active
35+
size={86}
36+
shape='square'
37+
className='rounded-l-xl overflow-hidden'
38+
/>
39+
<Skeleton
40+
active
41+
avatar={false}
3842
paragraph={{ rows: 1 }}
39-
title={false}
43+
title={true}
44+
className='flex-1 h-10 pl-5'
4045
/>
4146
</Card>
4247
))}

0 commit comments

Comments
 (0)