chore: update dependencies

This commit is contained in:
Acclorite 2025-07-10 11:39:23 +03:00
parent 7a028c1172
commit 4ecf2befd1
No known key found for this signature in database
GPG key ID: 6E54C611F6EE8593
2 changed files with 26 additions and 18 deletions

View file

@ -8,8 +8,12 @@ package ua.acclorite.book_story.ui.common.components.modal_bottom_sheet
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.WindowInsetsSides
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.only
import androidx.compose.foundation.layout.safeDrawing
import androidx.compose.material3.BottomSheetDefaults
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
@ -59,6 +63,10 @@ fun ModalBottomSheet(
)
.fillMaxWidth()
.then(modifier),
contentWindowInsets = {
if (hasFixedHeight) WindowInsets.safeDrawing.only(WindowInsetsSides.Bottom)
else BottomSheetDefaults.windowInsets
},
sheetGesturesEnabled = sheetGesturesEnabled,
onDismissRequest = {
onDismissRequest()