File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package org.schabi.newpipe.ui.components.common
33import android.content.res.Configuration
44import androidx.annotation.StringRes
55import androidx.compose.foundation.layout.Arrangement
6+ import androidx.compose.foundation.layout.PaddingValues
67import androidx.compose.foundation.layout.Row
78import androidx.compose.material.icons.Icons
89import androidx.compose.material.icons.filled.Info
@@ -25,7 +26,10 @@ fun IconButtonWithLabel(
2526 @StringRes label : Int ,
2627 onClick : () -> Unit ,
2728) {
28- FilledTonalButton (onClick = onClick) {
29+ FilledTonalButton (
30+ contentPadding = PaddingValues (vertical = 8 .dp, horizontal = 12 .dp),
31+ onClick = onClick
32+ ) {
2933 Row (
3034 horizontalArrangement = Arrangement .spacedBy(4 .dp),
3135 verticalAlignment = Alignment .CenterVertically ,
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ private fun HistoryHeader(
163163 }
164164 }
165165
166- FlowRow (horizontalArrangement = Arrangement .spacedBy(4 .dp)) {
166+ FlowRow (horizontalArrangement = Arrangement .spacedBy(4 .dp, Alignment . CenterHorizontally )) {
167167 IconButtonWithLabel (
168168 icon = Icons .Default .Headphones ,
169169 label = R .string.controls_background_title,
You can’t perform that action at this time.
0 commit comments