Skip to content

Commit e2b7bec

Browse files
authored
Add linewrap to AI actions dropdown (#3534)
1 parent c1b577e commit e2b7bec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/gitbook/src/components/AIActions/AIActions.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ function AIActionWrapper(props: {
251251
>
252252
<div className="flex size-5 items-center justify-center text-tint">
253253
{loading ? (
254-
<Icon icon="spinner-third" className="size-4 animate-spin" />
254+
<Icon icon="spinner-third" className="size-4 shrink-0 animate-spin" />
255255
) : icon ? (
256256
typeof icon === 'string' ? (
257257
<Icon
258258
icon={icon as IconName}
259259
iconStyle={IconStyle.Regular}
260-
className="size-4 fill-transparent stroke-current"
260+
className="size-4 shrink-0 fill-transparent stroke-current"
261261
/>
262262
) : (
263263
icon
@@ -268,9 +268,9 @@ function AIActionWrapper(props: {
268268
<div className="flex flex-1 flex-col gap-0.5">
269269
<span className="flex items-center gap-2 text-tint-strong">
270270
<span className="truncate font-medium text-sm">{label}</span>
271-
{href ? <Icon icon="arrow-up-right" className="size-3" /> : null}
271+
{href ? <Icon icon="arrow-up-right" className="size-3 shrink-0" /> : null}
272272
</span>
273-
{description && <span className="truncate text-tint text-xs">{description}</span>}
273+
{description && <span className="text-tint text-xs">{description}</span>}
274274
</div>
275275
</DropdownMenuItem>
276276
);

0 commit comments

Comments
 (0)