From c6c0d06b5896aebd27cf87d111d6b50fdd257675 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Sun, 5 Jun 2022 11:59:43 +0200 Subject: [PATCH] Add a weight to errors in PlayerView --- .../main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt index d0ae6a5..7f5839a 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/views/PlayerView.kt @@ -241,15 +241,12 @@ fun PlayerView( Box( contentAlignment = Alignment.Center, modifier = Modifier + .weight(1f) .align(Alignment.CenterHorizontally) .padding(bottom = 32.dp) .padding(horizontal = 32.dp) .size(thumbnailSizeDp) ) { -// BasicText( -// text = playerState.error?.message ?: "", -// style = typography.xs.medium -// ) Error( error = Outcome.Error.Unhandled(player.error!!), onRetry = {