Skip to content

Enable text selection in HTML message content - #89

Merged
jhass merged 2 commits into
mainfrom
copilot/fix-text-selection-issue
May 14, 2026
Merged

Enable text selection in HTML message content#89
jhass merged 2 commits into
mainfrom
copilot/fix-text-selection-issue

Conversation

Copilot AI commented May 14, 2026

Copy link
Copy Markdown
Contributor

Text in posts, comments, conversations, and profile bios was not selectable — long-press had no effect. This was previously blocked by flutter/flutter#43494 (missing SelectableRegion support), which has since landed.

Change

  • Wrap the Html widget in Message with Flutter's SelectionArea, making all rendered text selectable via long-press with no changes to link tap behaviour
// Before
return Html(shrinkWrap: true, ...);

// After
return SelectionArea(child: Html(shrinkWrap: true, ...));

Applies everywhere Message is used: stream, post detail, comments, conversations, and profile pages.

Copilot AI linked an issue May 14, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix cannot select text in stream view Enable text selection in HTML message content May 14, 2026
Copilot finished work on behalf of jhass May 14, 2026 13:54
Copilot AI requested a review from jhass May 14, 2026 13:54
@jhass
jhass marked this pull request as ready for review May 14, 2026 14:31
@jhass
jhass merged commit b4f7494 into main May 14, 2026
2 checks passed
@jhass
jhass deleted the copilot/fix-text-selection-issue branch May 14, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot select text

2 participants