A cheap attempt at a native Bluesky client for Android

NotificationsView: Fix LikeRowView height

The fixed height modifier on `LikeRowView` has been removed. This allows the view to wrap its content, preventing text from being cut off.

+6 -7
+6 -5
app/src/main/java/industries/geesawra/monarch/LikeRowView.kt
··· 3 3 import androidx.compose.foundation.layout.Arrangement 4 4 import androidx.compose.foundation.layout.Column 5 5 import androidx.compose.foundation.layout.Row 6 - import androidx.compose.foundation.layout.fillMaxSize 7 6 import androidx.compose.foundation.layout.fillMaxWidth 8 7 import androidx.compose.foundation.layout.padding 9 8 import androidx.compose.foundation.layout.size 9 + import androidx.compose.foundation.layout.wrapContentHeight 10 10 import androidx.compose.foundation.shape.CircleShape 11 11 import androidx.compose.material3.MaterialTheme 12 12 import androidx.compose.material3.Surface ··· 31 31 @Composable 32 32 fun LikeRowView( 33 33 modifier: Modifier = Modifier, 34 - color: Color = MaterialTheme.colorScheme.surface, 35 34 likeData: RepeatedNotification 36 35 ) { 37 36 val minSize = 55.dp ··· 39 38 Surface( 40 39 color = Color.Transparent, 41 40 modifier = modifier 42 - .padding(top = 8.dp, start = 16.dp, end = 16.dp) 43 - .fillMaxSize() 41 + .padding(top = 8.dp, start = 16.dp, end = 16.dp, bottom = 8.dp) 42 + .fillMaxWidth() 44 43 ) { 45 44 Row( 46 45 verticalAlignment = Alignment.Top, 47 46 horizontalArrangement = Arrangement.Start, 48 - modifier = Modifier.fillMaxWidth() 47 + modifier = Modifier 48 + .fillMaxWidth() 49 + .wrapContentHeight() 49 50 ) { 50 51 AsyncImage( 51 52 model = ImageRequest.Builder(LocalContext.current)
-2
app/src/main/java/industries/geesawra/monarch/NotificationsView.kt
··· 4 4 import androidx.compose.foundation.layout.Box 5 5 import androidx.compose.foundation.layout.fillMaxSize 6 6 import androidx.compose.foundation.layout.fillMaxWidth 7 - import androidx.compose.foundation.layout.height 8 7 import androidx.compose.foundation.layout.padding 9 8 import androidx.compose.foundation.layout.width 10 9 import androidx.compose.foundation.lazy.LazyColumn ··· 114 113 115 114 is Notification.Like -> LikeRowView( 116 115 likeData = notification.data, 117 - modifier = Modifier.height(120.dp), 118 116 ) 119 117 120 118 is Notification.Mention -> SkeetView(