From 9e14e6101be76bbc84588af6256181e198d9af6c Mon Sep 17 00:00:00 2001 From: Emanuel Hiebeler Date: Tue, 11 Feb 2025 13:31:37 +0100 Subject: [PATCH] #211 Fix text size in notifications past searches --- .../pfpixelix/ui/composables/explore/ExploreComposable.kt | 3 +-- .../ui/composables/notifications/CustomNotification.kt | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/commonMain/kotlin/com/daniebeler/pfpixelix/ui/composables/explore/ExploreComposable.kt b/app/src/commonMain/kotlin/com/daniebeler/pfpixelix/ui/composables/explore/ExploreComposable.kt index 57ab0cdc..29c853f1 100644 --- a/app/src/commonMain/kotlin/com/daniebeler/pfpixelix/ui/composables/explore/ExploreComposable.kt +++ b/app/src/commonMain/kotlin/com/daniebeler/pfpixelix/ui/composables/explore/ExploreComposable.kt @@ -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) diff --git a/app/src/commonMain/kotlin/com/daniebeler/pfpixelix/ui/composables/notifications/CustomNotification.kt b/app/src/commonMain/kotlin/com/daniebeler/pfpixelix/ui/composables/notifications/CustomNotification.kt index 8be0f99d..50197b09 100644 --- a/app/src/commonMain/kotlin/com/daniebeler/pfpixelix/ui/composables/notifications/CustomNotification.kt +++ b/app/src/commonMain/kotlin/com/daniebeler/pfpixelix/ui/composables/notifications/CustomNotification.kt @@ -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) @@ -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,