Merge pull request #178 from android/caren/row_button_scroll_fix

Remove weight on NiaButtonContent that was causing narrow buttons when using Row with horizontalScroll
pull/191/head
Caren 2 years ago committed by GitHub
commit e444786189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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