This commit is contained in:
ponzischeme89
2026-08-21 12:12:03 +12:00
parent 48043dbae2
commit 243b7c8b90
5 changed files with 71 additions and 50 deletions
@@ -1124,9 +1124,9 @@ internal fun MetadataHero(
.clipToBounds()
.background(
Brush.verticalGradient(
0f to MembySurface.copy(alpha = 0.52f),
0.72f to MembySurface.copy(alpha = 0.30f),
1f to Color.Transparent,
0f to MembySurface.copy(alpha = 0.68f),
0.72f to MembySurface.copy(alpha = 0.46f),
1f to MembySurface.copy(alpha = 0.16f),
),
),
) {
@@ -166,9 +166,9 @@ internal fun homeHeaderHeight(viewportHeight: Dp, showHero: Boolean): Dp =
(viewportHeight * 0.46f).coerceIn(232.dp, 300.dp)
} else {
// The focused metadata surface is also the clean upper boundary for shelves as
// they move vertically. About 20dp more coverage at common TV heights keeps a
// departing card's last text line from being exposed without costing another row.
(viewportHeight * 0.46f).coerceIn(240.dp, 320.dp)
// they move vertically. Give it a little more room than the cinematic hero so the
// title, ratings and overview read as one persistent browse panel.
(viewportHeight * 0.48f).coerceIn(250.dp, 330.dp)
}
private val LazyListStateMapSaver: Saver<MutableMap<String, LazyListState>, Any> = listSaver(