Skip to content

Commit 6c2d9f2

Browse files
committed
fix(web): undo notice truncates the summary and keeps the undo link visible
1 parent b60fe8b commit 6c2d9f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/components/sidebar/SidebarThreadUndoNotice.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export function SidebarThreadUndoNotice({ className }: { className?: string }) {
3131
if (!summary && event.target === event.currentTarget) setShownSummary(null);
3232
}}
3333
className={cn(
34-
"truncate px-2 text-2xs leading-6 text-sidebar-muted-foreground transition-opacity duration-200 ease-out starting:opacity-0",
34+
"flex gap-1 px-2 text-2xs leading-6 text-sidebar-muted-foreground transition-opacity duration-200 ease-out starting:opacity-0",
3535
!summary && "opacity-0",
3636
className,
3737
)}
3838
>
39-
{text},{" "}
39+
<span className="min-w-0 truncate">{text},</span>
4040
<InlineButton onClick={undoLatestThreadAction}>{threadUndoLabel(keybindings)}</InlineButton>
4141
</div>
4242
);

0 commit comments

Comments
 (0)