Reduce adaptiveThumbnailContent landscape size
This commit is contained in:
parent
7b6676e7c4
commit
e59e095266
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue