Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,21 @@ private fun LinkifiedText(
val annotated = remember(text, linkColor) {
linkifiedAnnotatedString(text, linkColor)
}
val hasLinks = WebLinkRegex.containsMatchIn(text)
// Only attach link tap handling when the text actually contains links.
// ClickableText consumes taps across the whole span to detect link hits,
// which would otherwise swallow the parent row's click when a session
// title has no links at all.
if (!hasLinks) {
Text(
text = annotated,
style = TextStyle(color = color, fontSize = fontSize),
maxLines = maxLines,
overflow = TextOverflow.Ellipsis,
modifier = modifier,
)
return
}
ClickableText(
text = annotated,
style = TextStyle(color = color, fontSize = fontSize),
Expand Down
Loading