Skip to content

Commit

Permalink
Fix vertical padding of toggle text buttons in a group
Browse files Browse the repository at this point in the history
  • Loading branch information
florentmaitre committed Oct 24, 2023
1 parent f70e03d commit 1c7fdb9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ private fun RowScope.TextToggleButtonsRowItem(
text = textToggleButton.text,
enabled = textToggleButton.enabled,
modifier = Modifier
.background(color = buttonToggleBackgroundColor(displaySurface).copy(alpha = backgroundAlpha)).let {
.background(color = buttonToggleBackgroundColor(displaySurface).copy(alpha = backgroundAlpha))
.fillMaxHeight()
.let {
if (sameItemsWeight) it.weight(1f) else it
},
maxLines = 1,
Expand Down

0 comments on commit 1c7fdb9

Please sign in to comment.