From ed65e18714978ca15c5fb9cbec220a223c196717 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 18 Nov 2026 15:00:28 +0100 Subject: [PATCH 1/2] fix: show full conversation type descriptions Remove the 4-line limit on the preset card descriptions in the new conversation screen so longer descriptions are no longer cut off. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe --- .../talk/conversationcreation/ui/ConversationPresetCards.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/conversationcreation/ui/ConversationPresetCards.kt b/app/src/main/java/com/nextcloud/talk/conversationcreation/ui/ConversationPresetCards.kt index 1691fb4ba95..7797367d13f 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationcreation/ui/ConversationPresetCards.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationcreation/ui/ConversationPresetCards.kt @@ -260,16 +260,13 @@ fun SelectableCard( Text( text = content.subtitle, fontSize = 13.sp, - lineHeight = 18.sp, - maxLines = DESCRIPTION_MAX_LINES, - overflow = TextOverflow.Ellipsis + lineHeight = 18.sp ) } } private const val PRESET_COLUMNS = 2 private const val TITLE_MAX_LINES = 2 -private const val DESCRIPTION_MAX_LINES = 4 private data class PresetLabel(@StringRes val title: Int, @StringRes val description: Int) From e5f029147bf7bff8277eadb70ccc4f89bf8e31c9 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 18 Nov 2026 15:08:15 +0100 Subject: [PATCH 2/2] fix: show full conversation type titles and equalize card heights Remove the 2-line limit on preset card titles so they are no longer cut off, and make cards in the same row share the height of the tallest one. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe --- .../ui/ConversationPresetCards.kt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/conversationcreation/ui/ConversationPresetCards.kt b/app/src/main/java/com/nextcloud/talk/conversationcreation/ui/ConversationPresetCards.kt index 7797367d13f..a66514849c6 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationcreation/ui/ConversationPresetCards.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationcreation/ui/ConversationPresetCards.kt @@ -13,8 +13,10 @@ import androidx.compose.foundation.selection.selectable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.IntrinsicSize import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding @@ -42,7 +44,6 @@ import androidx.compose.ui.res.stringResource import androidx.compose.ui.res.vectorResource import androidx.compose.ui.semantics.Role import androidx.compose.ui.text.font.FontWeight -import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import com.nextcloud.talk.R @@ -116,7 +117,10 @@ private fun PresetCards(presets: List, selected: String ) { val rows = remember(presets) { presets.chunked(PRESET_COLUMNS) } rows.forEach { row -> - Row(horizontalArrangement = Arrangement.spacedBy(12.dp)) { + Row( + modifier = Modifier.height(IntrinsicSize.Min), + horizontalArrangement = Arrangement.spacedBy(12.dp) + ) { row.forEach { preset -> val label = presetLabels[preset.identifier] SelectableCard( @@ -127,7 +131,9 @@ private fun PresetCards(presets: List, selected: String ), isSelected = preset.identifier == selected, onClick = { onSelect(preset.identifier) }, - modifier = Modifier.weight(1f) + modifier = Modifier + .weight(1f) + .fillMaxHeight() ) } repeat(PRESET_COLUMNS - row.size) { @@ -249,8 +255,6 @@ fun SelectableCard( text = content.title, fontWeight = FontWeight.Bold, fontSize = 15.sp, - maxLines = TITLE_MAX_LINES, - overflow = TextOverflow.Ellipsis, modifier = Modifier.weight(1f, fill = false) ) } @@ -266,7 +270,6 @@ fun SelectableCard( } private const val PRESET_COLUMNS = 2 -private const val TITLE_MAX_LINES = 2 private data class PresetLabel(@StringRes val title: Int, @StringRes val description: Int)