From e26493f58e99a0f6030d15826b32ee90c48ccff6 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 24 Jan 2023 11:30:04 -0600 Subject: [PATCH] fix form alignment when buying with crypto --- lib/pages/buy_view/buy_form.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/pages/buy_view/buy_form.dart b/lib/pages/buy_view/buy_form.dart index 7bc7ce2d5..05e9c84ef 100644 --- a/lib/pages/buy_view/buy_form.dart +++ b/lib/pages/buy_view/buy_form.dart @@ -798,7 +798,7 @@ class _BuyFormState extends ConsumerState { child: Padding( padding: const EdgeInsets.all(12), child: Row(children: [ - const SizedBox(width: 10), // maybe make isDesktop-aware? + SizedBox(width: buyWithFiat ? 10 : 6), buyWithFiat ? Text( format.simpleCurrencySymbol( @@ -817,7 +817,10 @@ class _BuyFormState extends ConsumerState { ) : getIconForTicker(selectedCrypto?.ticker ?? "BTC") as Widget, - const SizedBox(width: 15), // maybe make isDesktop-aware? + SizedBox( + width: buyWithFiat + ? 15 + : 10), // maybe make isDesktop-aware? Text( buyWithFiat ? selectedFiat?.ticker ?? "ERR"