Show selection over inline code; link URLs inside code

An opaque inline-code fill painted over the selection highlight, so a
selected code span looked unselected; it now keeps half the fill. Bare
URLs inside inline code, fenced blocks and operator messages' backticks
are now links like any other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 19:23:47 +00:00
parent fc3bb5a004
commit 54be08994b
8 changed files with 98 additions and 55 deletions
@@ -8,8 +8,8 @@ import 'chat_links.dart';
import 'chat_transcript_selection.dart';
/// Plain selectable text with its bare links made tappable: the operator's
/// own message keeps every character exactly as typed (no markdown), and only
/// `http(s)://`/`www.` runs outside `` `code` `` become links. Text without a
/// own message keeps every character exactly as typed (no markdown), and its
/// `http(s)://`/`www.` runs, in `` `code` `` too, become links. Text without a
/// link stays a plain [SelectableText] outside a shared transcript document.
class ChatLinkText extends StatefulWidget {
const ChatLinkText(this.text, {super.key});