diff --git a/apps/desktop/src/components/assistant-ui/markdown-text.tsx b/apps/desktop/src/components/assistant-ui/markdown-text.tsx index 3d9b44bf9ee9..a54b1d1efe91 100644 --- a/apps/desktop/src/components/assistant-ui/markdown-text.tsx +++ b/apps/desktop/src/components/assistant-ui/markdown-text.tsx @@ -373,14 +373,18 @@ function MarkdownImage({ className, src, alt, ...props }: ComponentProps<'img'>) return Loading {name}... } + // The width cap belongs on the container, not the : a percentage + // max-width resolves to none while the container measures its fit-content + // width, so the box overshoots the rendered image and strands the download + // button — which anchors to the container — out in the margin. return (