From 9bccf57f4e869d90c62adb91a4c1b2d1dff68928 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 18 Jun 2026 20:23:51 +0000 Subject: [PATCH] style: let the collapsed reply count wrap onto multiple lines Constrain the "+N replies" label width and end-align it so it can wrap, reducing the horizontal space the right-side cluster takes from the content. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_015hwQiQbgboo8LScPdDHDJn --- .../ui/screen/loggedIn/threadview/ThreadFeedView.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/threadview/ThreadFeedView.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/threadview/ThreadFeedView.kt index 726386c766..e71589001e 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/threadview/ThreadFeedView.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/threadview/ThreadFeedView.kt @@ -38,6 +38,7 @@ import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width +import androidx.compose.foundation.layout.widthIn import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyListState import androidx.compose.foundation.lazy.itemsIndexed @@ -67,6 +68,7 @@ import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.input.KeyboardCapitalization import androidx.compose.ui.text.input.TextFieldValue +import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.text.style.TextDirection import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.tooling.preview.Preview @@ -575,8 +577,10 @@ private fun CollapsedNoteCompose( Text( text = pluralStringResource(R.plurals.thread_collapsed_reply_count, hiddenReplyCount, hiddenReplyCount), color = MaterialTheme.colorScheme.placeholderText, - maxLines = 1, + textAlign = TextAlign.End, style = MaterialTheme.typography.labelMedium, + // Allow the label to wrap onto multiple lines so it takes less horizontal room. + modifier = Modifier.widthIn(max = Size55dp), ) Spacer(modifier = StdHorzSpacer) }