Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
PostItem: Limit user title to one line
Browse files Browse the repository at this point in the history
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
  • Loading branch information
theimpulson committed Mar 25, 2024
1 parent b564cd5 commit 8444d54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/io/aayush/relabs/ui/components/PostItem.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
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 androidx.compose.ui.viewinterop.AndroidView
Expand Down Expand Up @@ -140,7 +141,9 @@ fun PostItem(
Text(
text = post.user.title,
fontSize = 13.sp,
color = post.user.userTitle.color
color = post.user.userTitle.color,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
}
Text(
Expand Down

0 comments on commit 8444d54

Please sign in to comment.