File tree Expand file tree Collapse file tree 3 files changed +16
-17
lines changed
site/src/components/Avatar Expand file tree Collapse file tree 3 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -37,23 +37,10 @@ export const AvatarData: FC<AvatarDataProps> = ({
37
37
}
38
38
39
39
return (
40
- < Stack
41
- spacing = { 1 }
42
- direction = "row"
43
- css = { {
44
- minHeight : 40 , // Make it predictable for the skeleton
45
- width : "100%" ,
46
- lineHeight : "150%" ,
47
- } }
48
- >
40
+ < Stack spacing = { 1 } direction = "row" className = "w-full" >
49
41
{ avatar }
50
42
51
- < Stack
52
- spacing = { 0 }
53
- css = { {
54
- width : "100%" ,
55
- } }
56
- >
43
+ < Stack spacing = { 0 } className = "w-full" >
57
44
< span
58
45
css = { {
59
46
color : theme . palette . text . primary ,
Original file line number Diff line number Diff line change
1
+ import type { Meta , StoryObj } from "@storybook/react" ;
2
+ import { AvatarDataSkeleton } from "./AvatarDataSkeleton" ;
3
+
4
+ const meta : Meta < typeof AvatarDataSkeleton > = {
5
+ title : "components/AvatarDataSkeleton" ,
6
+ component : AvatarDataSkeleton ,
7
+ } ;
8
+
9
+ export default meta ;
10
+ type Story = StoryObj < typeof AvatarDataSkeleton > ;
11
+
12
+ export const Default : Story = { } ;
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import type { FC } from "react";
4
4
5
5
export const AvatarDataSkeleton : FC = ( ) => {
6
6
return (
7
- < Stack spacing = { 1.5 } direction = "row" alignItems = "center ">
8
- < Skeleton variant = "circular" width = { 36 } height = { 36 } />
7
+ < Stack spacing = { 1 } direction = "row" className = "w-full ">
8
+ < Skeleton variant = "rectangular" className = "size-6 rounded-sm" />
9
9
10
10
< Stack spacing = { 0 } >
11
11
< Skeleton variant = "text" width = { 100 } />
You can’t perform that action at this time.
0 commit comments