From 0d424131364f6af55912667768a5d219415b516d Mon Sep 17 00:00:00 2001 From: Antoine Jaury Date: Mon, 19 Oct 2026 14:36:19 +0200 Subject: [PATCH] refactor: add scrollable support for subtitle preferences bottom sheet --- CHANGELOG.md | 3 +++ .../chombev/preferences/ui/SubtitlePreferencesBottomSheet.kt | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6300898..98432ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- improve accessibility globally in the app +- add scrollable support for subtitle preferences bottom sheet + ### Fixed ## [1.0.0-beta04] - 2026-10-02 diff --git a/feature/records/src/commonMain/kotlin/bzh/ajaury/chombev/preferences/ui/SubtitlePreferencesBottomSheet.kt b/feature/records/src/commonMain/kotlin/bzh/ajaury/chombev/preferences/ui/SubtitlePreferencesBottomSheet.kt index 2994c74..8ce634f 100644 --- a/feature/records/src/commonMain/kotlin/bzh/ajaury/chombev/preferences/ui/SubtitlePreferencesBottomSheet.kt +++ b/feature/records/src/commonMain/kotlin/bzh/ajaury/chombev/preferences/ui/SubtitlePreferencesBottomSheet.kt @@ -5,6 +5,8 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.rememberScrollState +import androidx.compose.foundation.verticalScroll import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Add import androidx.compose.material.icons.filled.Remove @@ -89,6 +91,8 @@ private fun SubtitlePreferencesContent( Column( modifier = Modifier .fillMaxWidth() + // Scrolls when a large system font size makes the content taller than the sheet. + .verticalScroll(rememberScrollState()) .padding(horizontal = 16.dp) .padding(bottom = 24.dp), verticalArrangement = Arrangement.spacedBy(8.dp),