Skip to content

Commit 00c6637

Browse files
HayWolfjorben
andauthored
feat(ui): ✨ enable text selection in markdown preview and overlay (#221)
Co-authored-by: Jorben <jorbenzhu@gmail.com>
1 parent 3a077c1 commit 00c6637

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/workbench-shell/ui/file-editor-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ const MarkdownPreview: FC<MarkdownPreviewProps> = ({ content, workspaceId, fileP
317317
);
318318

319319
return (
320-
<div className="h-full overflow-auto bg-app-canvas/70 px-4 py-3 text-app-foreground">
320+
<div className="h-full overflow-auto bg-app-canvas/70 px-4 py-3 text-app-foreground select-text">
321321
<div className="mx-auto max-w-4xl text-sm leading-6">
322322
<MessageResponse components={components}>{content}</MessageResponse>
323323
</div>

src/modules/workbench-shell/ui/workbench-preview-overlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function WorkbenchPreviewOverlay({
5858
</div>
5959

6060
{/* Content */}
61-
<div className="min-h-0 flex-1 overflow-auto bg-app-canvas/70">
61+
<div className="min-h-0 flex-1 overflow-auto bg-app-canvas/70 select-text">
6262
{children}
6363
</div>
6464
</div>

0 commit comments

Comments
 (0)