fix: Keep role badges on a single line in users table (#13893)

* fix: Keep role badges on a single line in users table

* fix: Give role column a minimum width so badges are not clipped
This commit is contained in:
Tom Moor authored and GitHub committed 2026-09-25 22:48:45 -04:00
1 parent d5bc88f893
commit c07c03e1a0
1 file changed
+2 -2
@@ -162,7 +162,7 @@ export function UsersTable({ canManage, ...rest }: Props) {
header: t("Role"),
accessor: (user) => user.role,
component: (user) => (
<HStack spacing={4} wrap>
<HStack spacing={4}>
{user.isInvited && <Badge>{t("Invited")}</Badge>}
{user.isAdmin ? (
<Badge primary>{t("Admin")}</Badge>
@@ -176,7 +176,7 @@ export function UsersTable({ canManage, ...rest }: Props) {
{user.isSuspended && <Badge>{t("Suspended")}</Badge>}
</HStack>
),
width: "1.4fr",
width: "minmax(160px, 2fr)",
},
canManage
? {