From 9a5ed03d35d2c2adabbacfc858e872a30f5569fe Mon Sep 17 00:00:00 2001 From: Gibran Chevalley Date: Wed, 13 Nov 2024 09:26:20 +0100 Subject: [PATCH] Fix update and share button's width to be exactly the same as the sticky buttons --- .../ui/screen/newtransfer/upload/UploadSuccessQrScreen.kt | 4 +--- .../newtransfer/upload/components/ShareAndCopyButtons.kt | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/UploadSuccessQrScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/UploadSuccessQrScreen.kt index 7ae4d7ab1..d5febff5a 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/UploadSuccessQrScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/UploadSuccessQrScreen.kt @@ -61,9 +61,7 @@ fun UploadSuccessQrScreen(transferType: TransferType, transferUrl: String, close ScreenContent(transferType, transferUrl) ShareAndCopyButtons( - modifier = Modifier - .padding(horizontal = Margin.Medium) - .padding(bottom = Margin.Medium, top = Margin.Mini), + modifier = Modifier.padding(bottom = Margin.Medium, top = Margin.Mini), transferLink = transferUrl, snackbarHostState = snackbarHostState, ) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/components/ShareAndCopyButtons.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/components/ShareAndCopyButtons.kt index 2531fbe26..46436d2bd 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/components/ShareAndCopyButtons.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/components/ShareAndCopyButtons.kt @@ -51,6 +51,7 @@ fun ColumnScope.ShareAndCopyButtons(modifier: Modifier = Modifier, transferLink: modifier .widthIn(max = Dimens.SingleButtonMaxWidth) .fillMaxWidth() + .padding(horizontal = Margin.Medium) .align(Alignment.CenterHorizontally), ) { ShareCopyButton(