Fix bottom padding in playback controls

The else branch of `when (nextState)` in PlaybackController added a
32dp Spacer, leaving empty space below the controls when there were
no chapters or queue.

Fixes #1396.
This commit is contained in:
Justin Visser 2026-05-21 12:17:36 +02:00
parent 366483599c
commit f57715de14

View file

@ -10,9 +10,7 @@ import androidx.compose.foundation.interaction.collectIsFocusedAsState
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
@ -117,7 +115,7 @@ fun PlaybackController(
}
else -> {
Spacer(Modifier.height(32.dp))
Unit
}
}
}