From 4194087f0bf9caff922e8833f1a8f5ea22a5e574 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:10:11 +0800 Subject: [PATCH] Fix GalleryInfoBottomSheet content padding --- .../kotlin/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt index f8bc3e726..89835f8c4 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/GalleryInfoBottomSheet.kt @@ -3,8 +3,13 @@ package com.hippo.ehviewer.ui import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.WindowInsets +import androidx.compose.foundation.layout.WindowInsetsSides +import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.only import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.systemBars import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed @@ -68,7 +73,7 @@ fun GalleryInfoBottomSheet(detail: GalleryDetail, navigator: DestinationsNavigat ) val data = remember(detail) { detail.generateContent() } ProvideTextStyle(MaterialTheme.typography.labelLarge) { - LazyColumn { + LazyColumn(contentPadding = WindowInsets.systemBars.only(WindowInsetsSides.Bottom).asPaddingValues()) { itemsIndexed(data) { index, (key, content) -> Row( modifier = Modifier.padding(horizontal = dimensionResource(id = R.dimen.keyline_margin)).clickable {