diff --git a/app/scenes/Settings/components/GroupsTable.tsx b/app/scenes/Settings/components/GroupsTable.tsx index 9ea1098fbe..2d9e93534a 100644 --- a/app/scenes/Settings/components/GroupsTable.tsx +++ b/app/scenes/Settings/components/GroupsTable.tsx @@ -33,7 +33,7 @@ import { HStack } from "~/components/primitives/HStack"; import Tooltip from "~/components/Tooltip"; import { settingsPath } from "~/utils/routeHelpers"; -const ROW_HEIGHT = 60; +const ROW_HEIGHT = 50; const STICKY_OFFSET = HEADER_HEIGHT + FILTER_HEIGHT; type Props = Omit, "columns" | "rowHeight">; @@ -97,28 +97,35 @@ export function GroupsTable(props: Props) { - - handleViewMembers(group)}> - {group.name} - {group.disableMentions && ( - <> - {" "} - <Tooltip content={t("This group is hidden")}> - <HiddenIcon size={16} color={theme.textSecondary} /> - </Tooltip> - </> - )} - - {group.description && ( - - {group.description} - + handleViewMembers(group)}> + {group.name} + {group.disableMentions && ( + <> + {" "} + <Tooltip content={t("This group is hidden")}> + <HiddenIcon size={16} color={theme.textSecondary} /> + </Tooltip> + </> )} - </NameColumn> + ), width: "2fr", }, + { + type: "data", + id: "description", + header: t("Description"), + accessor: (group) => group.description, + component: (group) => + group.description ? ( + + {group.description} + + ) : null, + width: "2fr", + sortable: false, + }, { type: "data", id: "members", @@ -221,10 +228,6 @@ const Image = styled(Flex)` height: 24px; `; -const NameColumn = styled(Flex)` - min-width: 0; -`; - const Title = styled.span` &: ${hover} { text-decoration: underline;