Skip to content

Commit 60c1ad2

Browse files
committed
fix: responsive text overflow fixed
1 parent ce78664 commit 60c1ad2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dashboard/src/components/groups/Group.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ export default function Group({ group, onEdit, onToggleStatus }: GroupProps) {
7575

7676
return (
7777
<>
78-
<Card className="group relative h-full cursor-pointer px-4 py-5 transition-colors hover:bg-accent" onClick={() => onEdit(group)}>
78+
<Card className="group relative cursor-pointer px-4 py-5 transition-colors hover:bg-accent" onClick={() => onEdit(group)}>
7979
<div className="flex items-center gap-3">
8080
<div className="min-w-0 flex-1">
81-
<div className="flex items-center gap-2">
82-
<div className={cn('min-h-2 min-w-2 rounded-full', group.is_disabled ? 'bg-red-500' : 'bg-green-500')} />
83-
<div className="flex items-center gap-2">
84-
<div className="truncate font-medium">{group.name}</div>
85-
<div className="font-mono text-xs text-muted-foreground">({group.inbound_tags?.length || 0})</div>
81+
<div className="flex items-center gap-2 min-w-0">
82+
<div className={cn('min-h-2 min-w-2 rounded-full flex-shrink-0', group.is_disabled ? 'bg-red-500' : 'bg-green-500')} />
83+
<div className="flex items-center gap-2 min-w-0 flex-1">
84+
<div className="truncate font-medium min-w-0">{group.name}</div>
85+
<div className="font-mono text-xs text-muted-foreground flex-shrink-0">({group.inbound_tags?.length || 0})</div>
8686
</div>
8787
</div>
88-
<div className="truncate text-sm text-muted-foreground">
88+
<div className="truncate text-sm text-muted-foreground min-w-0">
8989
{t('admins.total.users')}: {group.total_users || 0}
9090
</div>
9191
</div>

0 commit comments

Comments
 (0)