From 7c47d7a42c6fd02bd478057f5dd6a3b1b9d6d244 Mon Sep 17 00:00:00 2001 From: mdsiamkazi Date: Sun, 8 Nov 2026 22:24:27 +0600 Subject: [PATCH] Fix Do more With QuickTube section card hight --- .commandcode/taste/taste.md | 0 .../edureminder/quicktube/feature/home/HomeScreen.kt | 10 ++++++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .commandcode/taste/taste.md diff --git a/.commandcode/taste/taste.md b/.commandcode/taste/taste.md new file mode 100644 index 0000000..e69de29 diff --git a/feature/home/src/main/java/com/edureminder/quicktube/feature/home/HomeScreen.kt b/feature/home/src/main/java/com/edureminder/quicktube/feature/home/HomeScreen.kt index a41e015..697e801 100644 --- a/feature/home/src/main/java/com/edureminder/quicktube/feature/home/HomeScreen.kt +++ b/feature/home/src/main/java/com/edureminder/quicktube/feature/home/HomeScreen.kt @@ -400,16 +400,18 @@ private fun FeatureTile( title: String, subtitle: String, icon: androidx.compose.ui.graphics.vector.ImageVector, tint: Color, modifier: Modifier, onClick: () -> Unit, ) { + // Fixed height so both tiles in a row are the same size; text is capped to one line each. Column( - modifier.clip(RoundedCornerShape(22.dp)) + modifier.height(150.dp).clip(RoundedCornerShape(22.dp)) .background(Brush.linearGradient(listOf(tint.copy(alpha = 0.16f), MaterialTheme.colorScheme.surfaceContainerLow))) .border(1.dp, tint.copy(alpha = 0.18f), RoundedCornerShape(22.dp)) .pressable(scaleDown = 0.96f, onClick = onClick).padding(16.dp), ) { IconTile(icon, tint = tint, size = 42.dp) - Text(title, style = MaterialTheme.typography.titleSmall, modifier = Modifier.padding(top = 14.dp)) - Text(subtitle, style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant, maxLines = 2, - modifier = Modifier.padding(top = 2.dp)) + Text(title, style = MaterialTheme.typography.titleSmall, maxLines = 1, overflow = TextOverflow.Ellipsis, + modifier = Modifier.padding(top = 14.dp)) + Text(subtitle, style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant, maxLines = 1, + overflow = TextOverflow.Ellipsis, modifier = Modifier.padding(top = 2.dp)) } }