mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
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:
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
|
||||
? {
|
||||
|
||||
Reference in new issue
Block a user