Reduce adaptiveThumbnailContent landscape size

This commit is contained in:
vfsfitvnm 2022-10-08 13:06:01 +02:00
parent 7b6676e7c4
commit e59e095266

View file

@ -45,8 +45,7 @@ fun adaptiveThumbnailContent(
val (colorPalette, _, thumbnailShape) = LocalAppearance.current val (colorPalette, _, thumbnailShape) = LocalAppearance.current
BoxWithConstraints(contentAlignment = Alignment.Center) { BoxWithConstraints(contentAlignment = Alignment.Center) {
val size = if (isLandscape) maxHeight else maxWidth val thumbnailSizeDp = if (isLandscape) (maxHeight - 128.dp) else (maxWidth - 64.dp)
val thumbnailSizeDp = size - 64.dp
val thumbnailSizePx = thumbnailSizeDp.px val thumbnailSizePx = thumbnailSizeDp.px
val modifier = Modifier val modifier = Modifier