Merge pull request #433 from barrydeen/fix/portrait-video-sizing
fix: prevent portrait videos from filling entire post card
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user