Skip to content

Commit 6d3bf01

Browse files
s243aclaude
andauthored
fix(web): show the full path in file link tooltips (#7741)
Co-authored-by: John William Creighton (s243a) <s243a@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent e723501 commit 6d3bf01

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/components/ChatMarkdown.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,10 @@ const MarkdownFileLink = memo(function MarkdownFileLink({
13231323
side="top"
13241324
className="max-w-[min(40rem,calc(100vw-2rem))] font-mono text-[11px] leading-tight"
13251325
>
1326+
{/* The full path: the chip already shows the shortened form, and a link
1327+
to the workspace root collapses to a bare label that repeats it. */}
13261328
<div className="overflow-x-auto whitespace-nowrap [scrollbar-color:color-mix(in_srgb,var(--border)_78%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[color-mix(in_srgb,var(--border)_78%,transparent)] [&::-webkit-scrollbar-track]:bg-transparent">
1327-
{displayPath}
1329+
{targetPath}
13281330
</div>
13291331
</TooltipPopup>
13301332
</Tooltip>

0 commit comments

Comments
 (0)