From 24f74eb88853162899fe345dc34a9c5a20f66657 Mon Sep 17 00:00:00 2001 From: brooklyn! Date: Thu, 11 Jun 2026 23:15:06 -0500 Subject: [PATCH] fix(desktop): make file-preview source + markdown selectable (#44648) body sets user-select:none for native feel and opts text back in only via [data-selectable-text='true']; the preview's source and rendered-markdown panes never set it, so code couldn't be selected or copied. Tag the Shiki code column and the markdown root. The attribute stays off the SourceView grid root so the gutter keeps its select-none and line numbers don't bleed into copied text. --- apps/desktop/src/app/chat/right-rail/preview-file.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/app/chat/right-rail/preview-file.tsx b/apps/desktop/src/app/chat/right-rail/preview-file.tsx index 18dc113d2..8d9ce9229 100644 --- a/apps/desktop/src/app/chat/right-rail/preview-file.tsx +++ b/apps/desktop/src/app/chat/right-rail/preview-file.tsx @@ -287,7 +287,7 @@ const MARKDOWN_COMPONENTS = { function MarkdownPreview({ text }: { text: string }) { return ( -
+
{text} @@ -383,7 +383,10 @@ function SourceView({ filePath, language, text }: { filePath: string; language: ) })}
-
+
{selection && (