This commit is contained in:
ponzischeme89
2026-08-21 11:19:10 +12:00
parent af1ca4370c
commit aac8438764
2 changed files with 10 additions and 2 deletions
@@ -56,6 +56,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.clipToBounds
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.focus.FocusRequester
@@ -1803,7 +1804,14 @@ internal fun MediaRow(
// can dispose that item during a focus transfer and make Compose
// release the same pin twice. LazyListState already preserves the
// row position; native TV spatial search safely handles row changes.
modifier = Modifier.fillMaxWidth().focusGroup(),
// A horizontal lazy list clips along its scroll axis, but focused cards
// also draw from a scaled layer in the vertical axis. Its measured height
// already contains artwork, title and secondary metadata; clip that
// complete unit here so the outgoing card cannot paint into another row.
modifier = Modifier
.fillMaxWidth()
.clipToBounds()
.focusGroup(),
) {
itemsIndexed(
row.items,