File tree 2 files changed +11
-4
lines changed
pages/UsersPage/UsersTable 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,23 @@ import { FC } from "react";
5
5
import { css , type Interpolation , type Theme } from "@emotion/react" ;
6
6
7
7
export type AvatarProps = MuiAvatarProps & {
8
- size ?: "sm" | "md" | "xl" ;
8
+ size ?: "xs" | " sm" | "md" | "xl" ;
9
9
colorScheme ?: "light" | "darken" ;
10
10
fitImage ?: boolean ;
11
11
} ;
12
12
13
13
const sizeStyles = {
14
+ xs : ( theme ) => ( {
15
+ width : theme . spacing ( 2 ) ,
16
+ height : theme . spacing ( 2 ) ,
17
+ fontSize : theme . spacing ( 1 ) ,
18
+ fontWeight : 700 ,
19
+ } ) ,
14
20
sm : ( theme ) => ( {
15
21
width : theme . spacing ( 3 ) ,
16
22
height : theme . spacing ( 3 ) ,
17
23
fontSize : theme . spacing ( 1.5 ) ,
24
+ fontWeight : 600 ,
18
25
} ) ,
19
26
md : { } ,
20
27
xl : ( theme ) => ( {
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export function GroupsCell({ userGroups }: GroupsCellProps) {
84
84
display : "flex" ,
85
85
flexFlow : "column nowrap" ,
86
86
fontSize : theme . typography . body2 . fontSize ,
87
- padding : theme . spacing ( 1 , 0.5 ) ,
87
+ padding : theme . spacing ( 0.5 , 0.25 ) ,
88
88
gap : theme . spacing ( 0 ) ,
89
89
} }
90
90
>
@@ -94,11 +94,11 @@ export function GroupsCell({ userGroups }: GroupsCellProps) {
94
94
< ListItem
95
95
key = { group . id }
96
96
css = { {
97
- columnGap : theme . spacing ( 1.5 ) ,
97
+ columnGap : theme . spacing ( 1.25 ) ,
98
98
alignItems : "center" ,
99
99
} }
100
100
>
101
- < Avatar size = "sm " src = { group . avatar_url } alt = { groupName } >
101
+ < Avatar size = "xs " src = { group . avatar_url } alt = { groupName } >
102
102
{ groupName }
103
103
</ Avatar >
104
104
You can’t perform that action at this time.
0 commit comments