Skip to content

Commit

Permalink
Fix big font size cutting off settings options (#534)
Browse files Browse the repository at this point in the history
* Fix big font size cutting off settings options

* Run formatKotlin

---------

Co-authored-by: Calin Cara <[email protected]>
  • Loading branch information
calincara and Calin Cara authored Jun 11, 2023
1 parent 48d6657 commit 45c2334
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package com.jerboa.ui.components.settings.lookandfeel
import android.util.Log
import androidx.compose.foundation.layout.Column
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.outlined.*
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down Expand Up @@ -60,6 +62,8 @@ fun LookAndFeelActivity(
val useCustomTabsState = rememberBooleanSettingState(settings?.useCustomTabs ?: true)

val snackbarHostState = remember { SnackbarHostState() }

val scrollState = rememberScrollState()

fun updateAppSettings() {
appSettingsViewModel.update(
Expand All @@ -85,7 +89,11 @@ fun LookAndFeelActivity(
SimpleTopAppBar(text = stringResource(R.string.look_and_feel_look_and_feel), navController = navController)
},
content = { padding ->
Column(modifier = Modifier.padding(padding)) {
Column(
modifier = Modifier
.verticalScroll(scrollState)
.padding(padding),
) {
SettingsSlider(
modifier = Modifier.padding(top = 10.dp),
valueRange = 8f..48f,
Expand Down

0 comments on commit 45c2334

Please sign in to comment.