Skip to content

Commit

Permalink
#211 Fix text size in notifications past searches
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiebeler committed Feb 11, 2025
1 parent 16e98ba commit 9e14e61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ private fun PastSearchItem(
item.value
}
}
Text(text = text)
Spacer(modifier = Modifier.weight(1f))
Text(text = text, modifier = Modifier.weight(1f), softWrap = true)
Box(
modifier = Modifier
.height(22.dp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fun CustomNotification(
Navigate.navigate("profile_screen/" + notification.account.id, navController)
})
Spacer(modifier = Modifier.width(10.dp))
Column {
Column(Modifier.weight(1f)) {
Row(verticalAlignment = Alignment.CenterVertically) {
Text(text = notification.account.username, fontWeight = FontWeight.Bold, modifier = Modifier.clickable {
Navigate.navigate("profile_screen/" + notification.account.id, navController)
Expand All @@ -123,7 +123,7 @@ fun CustomNotification(
} else {
viewModel.ancestor?.mediaAttachments?.get(0)?.previewUrl
}
Spacer(modifier = Modifier.weight(1f))
//Spacer(modifier = Modifier.weight(1f))
AsyncImage(model = previewUrl,
contentDescription = "",
contentScale = ContentScale.Crop,
Expand Down

0 comments on commit 9e14e61

Please sign in to comment.