Add a weight to errors in PlayerView
This commit is contained in:
@@ -241,15 +241,12 @@ fun PlayerView(
|
|||||||
Box(
|
Box(
|
||||||
contentAlignment = Alignment.Center,
|
contentAlignment = Alignment.Center,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
.weight(1f)
|
||||||
.align(Alignment.CenterHorizontally)
|
.align(Alignment.CenterHorizontally)
|
||||||
.padding(bottom = 32.dp)
|
.padding(bottom = 32.dp)
|
||||||
.padding(horizontal = 32.dp)
|
.padding(horizontal = 32.dp)
|
||||||
.size(thumbnailSizeDp)
|
.size(thumbnailSizeDp)
|
||||||
) {
|
) {
|
||||||
// BasicText(
|
|
||||||
// text = playerState.error?.message ?: "",
|
|
||||||
// style = typography.xs.medium
|
|
||||||
// )
|
|
||||||
Error(
|
Error(
|
||||||
error = Outcome.Error.Unhandled(player.error!!),
|
error = Outcome.Error.Unhandled(player.error!!),
|
||||||
onRetry = {
|
onRetry = {
|
||||||
|
|||||||
Reference in New Issue
Block a user