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
@@ -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),