Skip to content

Commit a4bba50

Browse files
committed
Fix table loaders
1 parent a591559 commit a4bba50

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

site/src/components/UsersTable/UsersTableBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const UsersTableBody: FC<
7070
return (
7171
<ChooseOne>
7272
<Cond condition={Boolean(isLoading)}>
73-
<TableLoaderSkeleton columns={4} useAvatarData />
73+
<TableLoaderSkeleton columns={5} useAvatarData />
7474
</Cond>
7575
<Cond condition={!users || users.length === 0}>
7676
<ChooseOne>

site/src/components/WorkspacesTable/WorkspacesTableBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const WorkspacesTableBody: FC<
2929
}
3030

3131
if (!workspaces) {
32-
return <TableLoaderSkeleton columns={4} useAvatarData />
32+
return <TableLoaderSkeleton columns={5} useAvatarData />
3333
}
3434

3535
if (workspaces.length === 0) {

site/src/pages/GroupsPage/GroupsPageView.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const GroupsPageView: FC<GroupsPageViewProps> = ({
8181
<TableBody>
8282
<ChooseOne>
8383
<Cond condition={isLoading}>
84-
<TableLoaderSkeleton columns={2} useAvatarData />
84+
<TableLoaderSkeleton columns={3} useAvatarData />
8585
</Cond>
8686

8787
<Cond condition={isEmpty}>
@@ -143,7 +143,11 @@ export const GroupsPageView: FC<GroupsPageViewProps> = ({
143143

144144
<TableCell>
145145
{group.members.length === 0 && "-"}
146-
<AvatarGroup>
146+
<AvatarGroup
147+
max={10}
148+
total={group.members.length}
149+
sx={{ justifyContent: "flex-end" }}
150+
>
147151
{group.members.map((member) => (
148152
<UserAvatar
149153
key={member.username}

site/src/pages/TemplatesPage/TemplatesPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export const TemplatesPageView: FC<
210210
</TableHead>
211211
<TableBody>
212212
<Maybe condition={isLoading}>
213-
<TableLoaderSkeleton columns={4} useAvatarData />
213+
<TableLoaderSkeleton columns={5} useAvatarData />
214214
</Maybe>
215215

216216
<ChooseOne>

0 commit comments

Comments
 (0)