Remove weight on NiaButtonContent that was causing narrow buttons when using Row with horizontalScroll

pull/1837/head
Caren Chang 3 years ago
parent 82e81b9f82
commit 7170d2e8a0

@ -324,7 +324,6 @@ private fun RowScope.NiaButtonContent(
} }
Box( Box(
Modifier Modifier
.weight(1f, fill = false)
.padding( .padding(
start = if (leadingIcon != null) { start = if (leadingIcon != null) {
NiaButtonDefaults.ButtonContentSpacing NiaButtonDefaults.ButtonContentSpacing

Loading…
Cancel
Save