From 0b84d37f8ecb1dd696e5cc4d0a84831e5a04295b Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Wed, 4 Nov 2026 01:26:48 -0800 Subject: [PATCH] improvement(sim-links): drop the leftover fragment around the source actions menu The new-link form moved to the provider root, so the source card's actions menu no longer renders a sibling and needs no fragment. --- .../components/source-card/source-card.tsx | 62 +++++++++---------- 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx index 964117edfdd..dfe307267f9 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx @@ -80,39 +80,37 @@ function SourceActions({ source, onSummarize }: SourceActionsProps) { const simLinkOrganizationId = useSimLinkOrganizationId() const openSimLinkForm = useOpenSimLinkForm() return ( - <> - - - - - - {onSummarize && ( - onSummarize(source)}> - - Summarize - - )} - { - if (!(await copy(source.url))) toast.error('Unable to copy link') - }} - > - - Copy link + + + + + + {onSummarize && ( + onSummarize(source)}> + + Summarize - {simLinkOrganizationId && ( - openSimLinkForm(source.url, sourceLabel(source))} - /> - )} - - - + )} + { + if (!(await copy(source.url))) toast.error('Unable to copy link') + }} + > + + Copy link + + {simLinkOrganizationId && ( + openSimLinkForm(source.url, sourceLabel(source))} + /> + )} + + ) }