Add linewrap to AI actions dropdown (#3534)

This commit is contained in:
Zeno Kapitein
2025-08-05 14:17:00 +02:00
committed by GitHub
parent c1b577ecc9
commit e2b7bec162
@@ -251,13 +251,13 @@ function AIActionWrapper(props: {
>
<div className="flex size-5 items-center justify-center text-tint">
{loading ? (
<Icon icon="spinner-third" className="size-4 animate-spin" />
<Icon icon="spinner-third" className="size-4 shrink-0 animate-spin" />
) : icon ? (
typeof icon === 'string' ? (
<Icon
icon={icon as IconName}
iconStyle={IconStyle.Regular}
className="size-4 fill-transparent stroke-current"
className="size-4 shrink-0 fill-transparent stroke-current"
/>
) : (
icon
@@ -268,9 +268,9 @@ function AIActionWrapper(props: {
<div className="flex flex-1 flex-col gap-0.5">
<span className="flex items-center gap-2 text-tint-strong">
<span className="truncate font-medium text-sm">{label}</span>
{href ? <Icon icon="arrow-up-right" className="size-3" /> : null}
{href ? <Icon icon="arrow-up-right" className="size-3 shrink-0" /> : null}
</span>
{description && <span className="truncate text-tint text-xs">{description}</span>}
{description && <span className="text-tint text-xs">{description}</span>}
</div>
</DropdownMenuItem>
);