Skip to content

Commit

Permalink
Fix ListPreference horizontal content padding (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickgold committed May 4, 2024
1 parent 126945d commit e333ed9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import android.annotation.SuppressLint
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
Expand Down Expand Up @@ -293,6 +294,7 @@ fun <T : PreferenceModel, V : Any> PreferenceUiScope<T>.ListPreference(
)
}
},
contentPadding = PaddingValues(horizontal = 8.dp),
) {
Column {
val alpha = when {
Expand Down

0 comments on commit e333ed9

Please sign in to comment.