Skip to content

Commit a2e023b

Browse files
Reduce button padding
1 parent 3711e37 commit a2e023b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/ui/components/common/IconButtonWithLabel.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package org.schabi.newpipe.ui.components.common
33
import android.content.res.Configuration
44
import androidx.annotation.StringRes
55
import androidx.compose.foundation.layout.Arrangement
6+
import androidx.compose.foundation.layout.PaddingValues
67
import androidx.compose.foundation.layout.Row
78
import androidx.compose.material.icons.Icons
89
import androidx.compose.material.icons.filled.Info
@@ -26,7 +27,10 @@ fun IconButtonWithLabel(
2627
@StringRes label: Int,
2728
onClick: () -> Unit,
2829
) {
29-
FilledTonalButton(onClick = onClick) {
30+
FilledTonalButton(
31+
contentPadding = PaddingValues(vertical = 8.dp, horizontal = 12.dp),
32+
onClick = onClick
33+
) {
3034
Row(
3135
horizontalArrangement = Arrangement.spacedBy(4.dp),
3236
verticalAlignment = Alignment.CenterVertically,

0 commit comments

Comments
 (0)