From e7dd369b2e02dfbba5a5c96544bc9edc861194f7 Mon Sep 17 00:00:00 2001 From: Mohamed Amgd Date: Mon, 21 Aug 2023 20:30:13 +0300 Subject: [PATCH] minor ui improvement --- .../gamedeals/presentation/ui/components/FreeDealsList.kt | 2 +- .../gamedeals/presentation/ui/components/SearchUi.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mohamed_amgd/gamedeals/presentation/ui/components/FreeDealsList.kt b/app/src/main/java/com/mohamed_amgd/gamedeals/presentation/ui/components/FreeDealsList.kt index c99401e..78c0027 100644 --- a/app/src/main/java/com/mohamed_amgd/gamedeals/presentation/ui/components/FreeDealsList.kt +++ b/app/src/main/java/com/mohamed_amgd/gamedeals/presentation/ui/components/FreeDealsList.kt @@ -125,7 +125,7 @@ private fun ListItem( modifier = Modifier .align(Alignment.BottomCenter) .padding(all = 12.dp), - text = deal.name, + text = deal.name.trim(), style = MaterialTheme.typography.h3, maxLines = 4, overflow = TextOverflow.Ellipsis diff --git a/app/src/main/java/com/mohamed_amgd/gamedeals/presentation/ui/components/SearchUi.kt b/app/src/main/java/com/mohamed_amgd/gamedeals/presentation/ui/components/SearchUi.kt index 7008eb3..606e17d 100644 --- a/app/src/main/java/com/mohamed_amgd/gamedeals/presentation/ui/components/SearchUi.kt +++ b/app/src/main/java/com/mohamed_amgd/gamedeals/presentation/ui/components/SearchUi.kt @@ -237,7 +237,7 @@ private fun ListItem( ) { var textSize: TextUnit by remember { mutableStateOf(18.sp) } Text( - text = deal.name, + text = deal.name.trim(), textAlign = TextAlign.Center, style = MaterialTheme.typography.h2, fontSize = textSize,