Merge pull request #433 from barrydeen/fix/portrait-video-sizing

fix: prevent portrait videos from filling entire post card
This commit is contained in:
Barry Deen
2026-04-07 15:22:51 -04:00
committed by GitHub
@@ -2140,9 +2140,12 @@ internal fun InlineVideoPlayerWithFullscreen(url: String, onFullScreen: (positio
}
}
Box(
modifier = Modifier.fillMaxWidth(),
contentAlignment = Alignment.Center
) {
Box(
modifier = Modifier
.fillMaxWidth()
.heightIn(max = 500.dp)
.aspectRatio(videoAspectRatio)
.clip(RoundedCornerShape(12.dp))
@@ -2268,6 +2271,7 @@ internal fun InlineVideoPlayerWithFullscreen(url: String, onFullScreen: (positio
}
}
}
} // centering wrapper
}
@OptIn(UnstableApi::class)