fix(tv): constrain media detail background gradients to image size

This commit is contained in:
2026-06-19 16:16:52 +00:00
parent 29c48a50b6
commit eb540a0fbb

View File

@@ -89,17 +89,18 @@ internal fun TvMediaDetailBodyBox(
.fillMaxWidth()
.heightIn(min = bodyHeight)
) {
Box(modifier = Modifier.matchParentSize()) {
PurefinAsyncImage(
model = backgroundImageUrl,
contentDescription = null,
Box(
modifier = Modifier
.fillMaxHeight()
.fillMaxWidth(MediaDetailBodyImageWidthFraction)
.align(Alignment.TopEnd),
.align(Alignment.TopEnd)
) {
PurefinAsyncImage(
model = backgroundImageUrl,
contentDescription = null,
modifier = Modifier.fillMaxSize(),
contentScale = ContentScale.Crop
)
}
Box(
modifier = Modifier
.matchParentSize()
@@ -127,6 +128,7 @@ internal fun TvMediaDetailBodyBox(
)
)
)
}
Column(
modifier = Modifier
.fillMaxWidth()