From a2901750200fe50c66e2edf8f73625792160bf7a Mon Sep 17 00:00:00 2001 From: MarkNerdi <105642810+MarkNerdi@users.noreply.github.com> Date: Fri, 5 Aug 2022 11:18:02 +0200 Subject: [PATCH] ui: fix padding on asset list (#4164) * ui: move scrollbar into outer div * ui: fix horizontal scroll * fix: scroll bar behaviour * ui: fix bottom padding Co-authored-by: Nicole O'Brien --- .../components/molecules/AssetList.svelte | 36 ++++++++----- .../organisms/AccountActivity.svelte | 52 +++++++++++-------- 2 files changed, 54 insertions(+), 34 deletions(-) diff --git a/packages/shared/components/molecules/AssetList.svelte b/packages/shared/components/molecules/AssetList.svelte index 164935dece3..aa7c15a995f 100644 --- a/packages/shared/components/molecules/AssetList.svelte +++ b/packages/shared/components/molecules/AssetList.svelte @@ -30,23 +30,33 @@ {#if assets} -
+
{localize('general.assets')}
-
-
- {#if assets?.baseCoin || assets?.nativeTokens?.length > 0} - - handleAssetTileClick(item)} asset={item} /> - - {:else} -
- {localize('general.noAssets')} -
- {/if} -
+
+ {#if assets?.baseCoin || assets?.nativeTokens?.length > 0} + + handleAssetTileClick(item)} asset={item} /> + + {:else} +
+ {localize('general.noAssets')} +
+ {/if}
{/if} + + diff --git a/packages/shared/components/organisms/AccountActivity.svelte b/packages/shared/components/organisms/AccountActivity.svelte index cc66d088df8..769ac0d2156 100644 --- a/packages/shared/components/organisms/AccountActivity.svelte +++ b/packages/shared/components/organisms/AccountActivity.svelte @@ -73,7 +73,7 @@ } -
+
@@ -103,26 +103,36 @@
{/if}
-
-
- {#if $selectedAccount.isSyncing && shouldShowFirstSync()} - {localize('general.firstSync')} - {:else if activityListWithTitles.length} - -
- {#if item.title} - - {item.title} • {item.amount} - - {/if} - -
-
- {:else} -
- {localize('general.noRecentHistory')} +
+ {#if $selectedAccount.isSyncing && shouldShowFirstSync()} + {localize('general.firstSync')} + {:else if activityListWithTitles.length} + +
+ {#if item.title} + + {item.title} • {item.amount} + + {/if} +
- {/if} -
+ + {:else} +
+ {localize('general.noRecentHistory')} +
+ {/if}
+ +