fix: adjust layout constraints and increase max lines for text display

This commit is contained in:
tapframe 2026-04-06 11:46:37 +05:30
parent ec53965105
commit 7beefd4c5f

View file

@ -361,8 +361,9 @@ internal fun HomescreenCatalogRow(
) { ) {
Column( Column(
modifier = Modifier modifier = Modifier
.weight(1f)
.padding(end = 12.dp) .padding(end = 12.dp)
.widthIn(max = if (isTablet) 560.dp else 260.dp), .then(if (isTablet) Modifier.widthIn(max = 560.dp) else Modifier),
verticalArrangement = Arrangement.spacedBy(4.dp), verticalArrangement = Arrangement.spacedBy(4.dp),
) { ) {
Text( Text(
@ -370,7 +371,7 @@ internal fun HomescreenCatalogRow(
style = MaterialTheme.typography.bodyLarge, style = MaterialTheme.typography.bodyLarge,
color = MaterialTheme.colorScheme.onSurface, color = MaterialTheme.colorScheme.onSurface,
fontWeight = FontWeight.SemiBold, fontWeight = FontWeight.SemiBold,
maxLines = 1, maxLines = 2,
overflow = TextOverflow.Ellipsis, overflow = TextOverflow.Ellipsis,
) )
Text( Text(