From c383fada9649bb99104e6ca0ffd01a6d9a7b8a29 Mon Sep 17 00:00:00 2001 From: Bilal Zahory Date: Fri, 19 Jul 2024 13:52:48 -0400 Subject: [PATCH] fix: vertically align asset image --- .../__snapshots__/asset-picker.test.tsx.snap | 62 +++++++++++-------- .../asset-picker/asset-picker.tsx | 48 +++++++------- 2 files changed, 60 insertions(+), 50 deletions(-) diff --git a/ui/components/multichain/asset-picker-amount/asset-picker/__snapshots__/asset-picker.test.tsx.snap b/ui/components/multichain/asset-picker-amount/asset-picker/__snapshots__/asset-picker.test.tsx.snap index 2662eb196a76..2f7765a5f200 100644 --- a/ui/components/multichain/asset-picker-amount/asset-picker/__snapshots__/asset-picker.test.tsx.snap +++ b/ui/components/multichain/asset-picker-amount/asset-picker/__snapshots__/asset-picker.test.tsx.snap @@ -13,29 +13,33 @@ exports[`AssetPicker matches snapshot 1`] = ` class="mm-box mm-box--display-flex mm-box--gap-3 mm-box--align-items-center" >
- - NATIVE TICKER logo -
-
+ + NATIVE TICKER logo +
+
- ? +
+ ? +
@@ -80,20 +84,24 @@ exports[`AssetPicker render if disabled 1`] = ` class="mm-box mm-box--display-flex mm-box--gap-3 mm-box--align-items-center" >
- s -
-
+ s +
+
- ? +
+ ? +
diff --git a/ui/components/multichain/asset-picker-amount/asset-picker/asset-picker.tsx b/ui/components/multichain/asset-picker-amount/asset-picker/asset-picker.tsx index 85115498a1a7..100c6708fe7e 100644 --- a/ui/components/multichain/asset-picker-amount/asset-picker/asset-picker.tsx +++ b/ui/components/multichain/asset-picker-amount/asset-picker/asset-picker.tsx @@ -179,30 +179,32 @@ export function AssetPicker({ title={handleAssetPickerTitle()} > - + + } + > + - } - > - - + +