Skip to content

Commit 975ba3c

Browse files
Reduce button size, fix alignment
1 parent e877997 commit 975ba3c

2 files changed

Lines changed: 6 additions & 2 deletions

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
@@ -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,

app/src/main/java/org/schabi/newpipe/ui/screens/HistoryScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)