mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-26 02:57:50 +02:00
Constrain reader sheet to max 75% of height
This commit is contained in:
@ -56,6 +56,7 @@ private val sheetAnimationSpec = tween<Float>(durationMillis = 350)
|
||||
|
||||
@Composable
|
||||
fun AdaptiveSheet(
|
||||
modifier: Modifier = Modifier,
|
||||
isTabletUi: Boolean,
|
||||
tonalElevation: Dp,
|
||||
enableSwipeDismiss: Boolean,
|
||||
@ -97,7 +98,8 @@ fun AdaptiveSheet(
|
||||
onClick = {},
|
||||
)
|
||||
.systemBarsPadding()
|
||||
.padding(vertical = 16.dp),
|
||||
.padding(vertical = 16.dp)
|
||||
.then(modifier),
|
||||
shape = MaterialTheme.shapes.extraLarge,
|
||||
tonalElevation = tonalElevation,
|
||||
content = {
|
||||
@ -160,6 +162,7 @@ fun AdaptiveSheet(
|
||||
Modifier
|
||||
},
|
||||
)
|
||||
.then(modifier)
|
||||
.offset {
|
||||
IntOffset(
|
||||
0,
|
||||
|
Reference in New Issue
Block a user