@@ -61,32 +61,32 @@ function UsersTable() {
61
61
< Table . Root size = { { base : "sm" , md : "md" } } >
62
62
< Table . Header >
63
63
< Table . Row >
64
- < Table . ColumnHeader w = "20% " > Full name</ Table . ColumnHeader >
65
- < Table . ColumnHeader w = "25% " > Email</ Table . ColumnHeader >
66
- < Table . ColumnHeader w = "15% " > Role</ Table . ColumnHeader >
67
- < Table . ColumnHeader w = "20% " > Status</ Table . ColumnHeader >
68
- < Table . ColumnHeader w = "20% " > Actions</ Table . ColumnHeader >
64
+ < Table . ColumnHeader w = "sm " > Full name</ Table . ColumnHeader >
65
+ < Table . ColumnHeader w = "sm " > Email</ Table . ColumnHeader >
66
+ < Table . ColumnHeader w = "sm " > Role</ Table . ColumnHeader >
67
+ < Table . ColumnHeader w = "sm " > Status</ Table . ColumnHeader >
68
+ < Table . ColumnHeader w = "sm " > Actions</ Table . ColumnHeader >
69
69
</ Table . Row >
70
70
</ Table . Header >
71
71
< Table . Body >
72
72
{ users ?. map ( ( user ) => (
73
73
< Table . Row key = { user . id } opacity = { isPlaceholderData ? 0.5 : 1 } >
74
- < Table . Cell w = "20%" color = { ! user . full_name ? "gray" : "inherit" } >
74
+ < Table . Cell color = { ! user . full_name ? "gray" : "inherit" } >
75
75
{ user . full_name || "N/A" }
76
76
{ currentUser ?. id === user . id && (
77
77
< Badge ml = "1" colorScheme = "teal" >
78
78
You
79
79
</ Badge >
80
80
) }
81
81
</ Table . Cell >
82
- < Table . Cell w = "25%" > { user . email } </ Table . Cell >
83
- < Table . Cell w = "15%" >
84
- { user . is_superuser ? "Superuser" : "User" }
82
+ < Table . Cell truncate maxW = "sm" >
83
+ { user . email }
85
84
</ Table . Cell >
86
- < Table . Cell w = "20%" >
87
- { user . is_active ? "Active " : "Inactive " }
85
+ < Table . Cell >
86
+ { user . is_superuser ? "Superuser " : "User " }
88
87
</ Table . Cell >
89
- < Table . Cell w = "20%" >
88
+ < Table . Cell > { user . is_active ? "Active" : "Inactive" } </ Table . Cell >
89
+ < Table . Cell >
90
90
< UserActionsMenu
91
91
user = { user }
92
92
disabled = { currentUser ?. id === user . id }
0 commit comments