From e59e095266c773953a39d823fe466b72cfb400c4 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Sat, 8 Oct 2022 13:06:01 +0200 Subject: [PATCH] Reduce adaptiveThumbnailContent landscape size --- .../ui/components/themed/LayoutWithAdaptiveThumbnail.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/themed/LayoutWithAdaptiveThumbnail.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/themed/LayoutWithAdaptiveThumbnail.kt index be6a99d..8c362de 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/themed/LayoutWithAdaptiveThumbnail.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/themed/LayoutWithAdaptiveThumbnail.kt @@ -45,8 +45,7 @@ fun adaptiveThumbnailContent( val (colorPalette, _, thumbnailShape) = LocalAppearance.current BoxWithConstraints(contentAlignment = Alignment.Center) { - val size = if (isLandscape) maxHeight else maxWidth - val thumbnailSizeDp = size - 64.dp + val thumbnailSizeDp = if (isLandscape) (maxHeight - 128.dp) else (maxWidth - 64.dp) val thumbnailSizePx = thumbnailSizeDp.px val modifier = Modifier