refactor: add scrollable support for subtitle preferences bottom sheet

This commit is contained in:
Antoine Jaury
2026-10-19 14:36:19 +02:00
parent f2e35fc8f2
commit 0d42413136
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- improve accessibility globally in the app
- add scrollable support for subtitle preferences bottom sheet
### Fixed ### Fixed
## [1.0.0-beta04] - 2026-10-02 ## [1.0.0-beta04] - 2026-10-02
@@ -5,6 +5,8 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding 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.Icons
import androidx.compose.material.icons.filled.Add import androidx.compose.material.icons.filled.Add
import androidx.compose.material.icons.filled.Remove import androidx.compose.material.icons.filled.Remove
@@ -89,6 +91,8 @@ private fun SubtitlePreferencesContent(
Column( Column(
modifier = Modifier modifier = Modifier
.fillMaxWidth() .fillMaxWidth()
// Scrolls when a large system font size makes the content taller than the sheet.
.verticalScroll(rememberScrollState())
.padding(horizontal = 16.dp) .padding(horizontal = 16.dp)
.padding(bottom = 24.dp), .padding(bottom = 24.dp),
verticalArrangement = Arrangement.spacedBy(8.dp), verticalArrangement = Arrangement.spacedBy(8.dp),