Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Dsync group table formatting (#20422)

Joe Au-Yeung47d822a092b5
diff --git a/packages/features/ee/dsync/components/GroupNameCell.tsx b/packages/features/ee/dsync/components/GroupNameCell.tsx
index ada92fa03d6..bcd4eccde97 100644
--- a/packages/features/ee/dsync/components/GroupNameCell.tsx
+++ b/packages/features/ee/dsync/components/GroupNameCell.tsx
@@ -2,10 +2,10 @@ import { useState } from "react";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
+import classNames from "@calcom/ui/classNames";
import { Badge } from "@calcom/ui/components/badge";
-import { Icon } from "@calcom/ui/components/icon";
import { TextField } from "@calcom/ui/components/form";
-import classNames from "@calcom/ui/classNames";
+import { Icon } from "@calcom/ui/components/icon";
import { showToast } from "@calcom/ui/components/toast";
interface GroupNameCellProps {
@@ -72,18 +72,21 @@ const GroupNameCell = ({ groupNames, teamId, directoryId }: GroupNameCellProps)
};
return (
- <div className="flex items-center space-x-4">
+ <div className="flex flex-wrap items-center gap-2 space-x-4">
{groupNames.map((name) => (
- <Badge variant="gray" size="lg" key={name} className="h-8 py-4">
- <div className="flex items-center space-x-2 ">
- <p>{name}</p>
- <div className="hover:bg-emphasis rounded p-1">
+ <Badge variant="gray" size="lg" key={name} className="min-h-8 h-auto py-2">
+ <div className="flex min-w-0 items-center gap-2">
+ <p className="min-w-0 break-words">{name}</p>
+ <div className="hover:bg-emphasis shrink-0 rounded p-1">
<Icon name="x" className="h-4 w-4 stroke-[3px]" onClick={() => removeGroupName(name)} />
</div>
</div>
</Badge>
))}
- <Badge variant="gray" size="lg" className={classNames(!showTextInput && "hover:bg-emphasis")}>
+ <Badge
+ variant="gray"
+ size="lg"
+ className={classNames(!showTextInput && "hover:bg-emphasis", "min-h-8 h-auto py-2")}>
<div
className="flex items-center space-x-1"
onClick={() => {
diff --git a/packages/features/ee/dsync/components/GroupTeamMappingTable.tsx b/packages/features/ee/dsync/components/GroupTeamMappingTable.tsx
index 6dd4d2aef9f..d74571563f0 100644
--- a/packages/features/ee/dsync/components/GroupTeamMappingTable.tsx
+++ b/packages/features/ee/dsync/components/GroupTeamMappingTable.tsx
@@ -40,7 +40,7 @@ const GroupTeamMappingTable = () => {
{
id: "group",
header: t("group_name"),
- size: 200,
+ size: 500,
enableHiding: false,
enableSorting: false,
cell: ({ row }) => {