A cheap attempt at a native Bluesky client for Android

ImageGallery: pass aspect ratio to images

Pass the aspect ratio (width and height) from the skeet's image data to the `Image` model. This will allow the `ImageGallery` to properly size images.

+8 -1
+2
app/src/main/java/industries/geesawra/monarch/PostImageGallery.kt
··· 32 32 data class Image( 33 33 val url: String, 34 34 val alt: String, 35 + val width: Long? = null, 36 + val height: Long? = null, 35 37 ) 36 38 37 39 @Composable
+6 -1
app/src/main/java/industries/geesawra/monarch/SkeetView.kt
··· 238 238 modifier = Modifier 239 239 .fillMaxSize(), 240 240 images = img.map { 241 - Image(url = it.thumb.uri, alt = it.alt) 241 + Image( 242 + url = it.thumb.uri, 243 + alt = it.alt, 244 + width = it.aspectRatio?.width, 245 + height = it.aspectRatio?.height 246 + ) 242 247 }, 243 248 ) 244 249 }