From fe0ed2391b88b385673ff5eb844de8c0867920df Mon Sep 17 00:00:00 2001 From: Antoine Jaury Date: Sat, 5 Sep 2026 16:16:11 +0200 Subject: [PATCH] chore: limit player controller width to improve UI consistency --- CHANGELOG.md | 1 + .../kotlin/bzh/ajaury/chombev/player/ui/PlayerControl.kt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1edda2..2fd6031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - show on boarding as a modal on large screens +- limit player controller size ### Fixed diff --git a/feature/records/src/commonMain/kotlin/bzh/ajaury/chombev/player/ui/PlayerControl.kt b/feature/records/src/commonMain/kotlin/bzh/ajaury/chombev/player/ui/PlayerControl.kt index eb41a74..e2742fc 100644 --- a/feature/records/src/commonMain/kotlin/bzh/ajaury/chombev/player/ui/PlayerControl.kt +++ b/feature/records/src/commonMain/kotlin/bzh/ajaury/chombev/player/ui/PlayerControl.kt @@ -6,6 +6,7 @@ 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.widthIn import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment @@ -48,7 +49,7 @@ fun PlayerControl( ) Row( - modifier = Modifier.fillMaxWidth(), + modifier = Modifier.widthIn(max = 350.dp).fillMaxWidth(), verticalAlignment = Alignment.CenterVertically, ) { // Left region: the speed button is centered in the space left of the transport group.