From 25df130b87df307386c1f61d12984867986fbd16 Mon Sep 17 00:00:00 2001 From: Caren Chang Date: Fri, 15 Jul 2022 15:47:34 -0700 Subject: [PATCH] Remove weight on NiaButtonContent that was causing narrow buttons when using Row with horizontalScroll --- .../apps/nowinandroid/core/designsystem/component/Button.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/core-designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/Button.kt b/core-designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/Button.kt index 696c7e8fc..149f1ccbc 100644 --- a/core-designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/Button.kt +++ b/core-designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/Button.kt @@ -324,7 +324,6 @@ private fun RowScope.NiaButtonContent( } Box( Modifier - .weight(1f, fill = false) .padding( start = if (leadingIcon != null) { NiaButtonDefaults.ButtonContentSpacing