Skip to content

Commit

Permalink
fix: make the subtitle settings scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz committed Aug 4, 2024
1 parent 46ad221 commit 20f4c92
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PageSize
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Refresh
import androidx.compose.material3.Card
Expand Down Expand Up @@ -85,10 +87,12 @@ fun SubtitleSettingsSheet(
Column(
horizontalAlignment = Alignment.Start,
verticalArrangement = Arrangement.spacedBy(8.dp),
modifier = Modifier.constrainAs(subSettingsCards) {
top.linkTo(parent.top)
end.linkTo(parent.end, 32.dp)
},
modifier = Modifier
.constrainAs(subSettingsCards) {
top.linkTo(parent.top)
end.linkTo(parent.end, 32.dp)
}
.verticalScroll(rememberScrollState()),
) {
Spacer(Modifier.height(16.dp))
repeat(3) { cards(it, Modifier) }
Expand Down

0 comments on commit 20f4c92

Please sign in to comment.