fix: sidebar overlapping status bar on notch devices
statusBarsPadding() was on the inner Column (only pushed content down), but the GlassSurface itself started at a fixed 12dp from the top edge — on devices with tall notches (S25 Ultra) the sidebar header sat behind the system clock/icons. Moved statusBarsPadding() to the GlassSurface modifier so the entire glass panel starts below the status bar.
This commit is contained in:
parent
8099f463b8
commit
f855a26b31
1 changed files with 2 additions and 2 deletions
|
|
@ -119,8 +119,9 @@ fun KaizenSidebar(
|
||||||
GlassSurface(
|
GlassSurface(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.fillMaxHeight()
|
.fillMaxHeight()
|
||||||
|
.statusBarsPadding()
|
||||||
.width(300.dp)
|
.width(300.dp)
|
||||||
.padding(start = 12.dp, top = 12.dp, end = 4.dp, bottom = 12.dp),
|
.padding(start = 12.dp, top = 8.dp, end = 4.dp, bottom = 12.dp),
|
||||||
shape = KaizenShapes.lg,
|
shape = KaizenShapes.lg,
|
||||||
tintAlpha = if (isDark) 0.80f else 0.86f,
|
tintAlpha = if (isDark) 0.80f else 0.86f,
|
||||||
shadowStack = KaizenShadows.level3,
|
shadowStack = KaizenShadows.level3,
|
||||||
|
|
@ -129,7 +130,6 @@ fun KaizenSidebar(
|
||||||
Column(
|
Column(
|
||||||
Modifier
|
Modifier
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.statusBarsPadding()
|
|
||||||
.padding(16.dp)
|
.padding(16.dp)
|
||||||
) {
|
) {
|
||||||
// ── Header ──
|
// ── Header ──
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue