Skip to content

Commit 26f8246

Browse files
fix: text wrap on /conference (#22864)
Co-authored-by: Kartik Saini <[email protected]>
1 parent 4baa9b6 commit 26f8246

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

packages/ui/components/app-list-card/AppListCard.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,36 @@ export const AppListCard = (props: AppListCardProps & { highlight?: boolean }) =
5353

5454
return (
5555
<div className={classNames(highlight && "dark:bg-muted bg-yellow-100", className)}>
56-
<div className="flex items-center gap-x-3 px-4 py-4 sm:px-6">
56+
<div className="flex items-start gap-x-3 px-4 py-4 sm:px-6">
5757
{logo ? (
5858
<img
59-
className={classNames(logo.includes("-dark") && "dark:invert", "h-10 w-10")}
59+
className={classNames(logo.includes("-dark") && "dark:invert", "h-10 w-10 flex-shrink-0")}
6060
src={logo}
6161
alt={`${title} logo`}
6262
/>
6363
) : null}
64-
<div className="flex grow flex-col gap-y-1 truncate">
64+
<div className="flex min-w-0 grow flex-col gap-y-1">
6565
<div className="flex items-center gap-x-2">
6666
<h3 className="text-emphasis truncate text-sm font-semibold">{title}</h3>
67-
<div className="flex items-center gap-x-2">
67+
<div className="flex flex-shrink-0 items-center gap-x-2">
6868
{isDefault && <Badge variant="green">{t("default")}</Badge>}
6969
{isTemplate && <Badge variant="red">Template</Badge>}
7070
</div>
7171
</div>
72-
<ListItemText component="p">{description}</ListItemText>
72+
<ListItemText component="p" className="whitespace-normal break-words">
73+
{description}
74+
</ListItemText>
7375
{invalidCredential && (
7476
<div className="flex gap-x-2 pt-2">
75-
<Icon name="circle-alert" className="h-8 w-8 text-red-500 sm:h-4 sm:w-4" />
76-
<ListItemText component="p" className="whitespace-pre-wrap text-red-500">
77+
<Icon name="circle-alert" className="h-8 w-8 flex-shrink-0 text-red-500 sm:h-4 sm:w-4" />
78+
<ListItemText component="p" className="whitespace-pre-wrap break-words text-red-500">
7779
{t("invalid_credential", { appName: title })}
7880
</ListItemText>
7981
</div>
8082
)}
8183
</div>
8284
{credentialOwner && (
83-
<div>
85+
<div className="flex-shrink-0">
8486
<Badge variant="gray">
8587
<div className="flex items-center">
8688
<Avatar
@@ -94,7 +96,7 @@ export const AppListCard = (props: AppListCardProps & { highlight?: boolean }) =
9496
</Badge>
9597
</div>
9698
)}
97-
{actions}
99+
{actions && <div className="flex-shrink-0">{actions}</div>}
98100
</div>
99101
<div className="w-full">{children}</div>
100102
</div>

0 commit comments

Comments
 (0)