File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ fun TopAppBar(
118118 modifier
119119 .windowInsetsPadding(WindowInsets .displayCutout.only(WindowInsetsSides .Horizontal ))
120120 .windowInsetsPadding(WindowInsets .navigationBars.only(WindowInsetsSides .Horizontal ))
121- .windowInsetsPadding(WindowInsets .captionBar.only(WindowInsetsSides .Top ))
122121 } else {
123122 modifier
124123 }
@@ -487,7 +486,7 @@ private fun TopAppBarLayout(
487486 actions : @Composable () -> Unit ,
488487 scrolledOffset : ScrolledOffset ,
489488 expandedHeightPx : Float ,
490- horizontalPadding : Dp ,
489+ horizontalPadding : Dp
491490) {
492491 val extOffset = abs(scrolledOffset.offset()) / expandedHeightPx * 2
493492 val alpha by animateFloatAsState(
@@ -546,6 +545,7 @@ private fun TopAppBarLayout(
546545 },
547546 modifier = Modifier
548547 .windowInsetsPadding(WindowInsets .statusBars)
548+ .windowInsetsPadding(WindowInsets .captionBar.only(WindowInsetsSides .Top ))
549549 .heightIn(max = 56 .dp + TopAppBarExpandedHeight )
550550 .clipToBounds()
551551 ) { measurables, constraints ->
You can’t perform that action at this time.
0 commit comments