Skip to content

Commit

Permalink
Load asset icon only when asset card is visible in the page
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Dec 22, 2024
1 parent e828da5 commit bf3b335
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/asset-cards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
:style="{ 'margin-left': index === 0 ? '0px' : '12px' }"
v-touch-pan="handlePan"
>
<div class="row items-start no-wrap justify-between" style="margin-top: -6px;">
<img :src="getImageUrl(asset)" height="30" class="q-mr-xs" alt="">
<p class="col q-pl-sm text-right asset-symbol" :class="{'text-grad' : isNotDefaultTheme}">
{{ asset.symbol }}
</p>
</div>
<q-intersection>
<div class="row items-start no-wrap justify-between" style="margin-top: -6px;">
<img :src="getImageUrl(asset)" height="30" class="q-mr-xs" alt="">
<p class="col q-pl-sm text-right asset-symbol" :class="{'text-grad' : isNotDefaultTheme}">
{{ asset.symbol }}
</p>
</div>
</q-intersection>
<div class="row" style="margin-top: -7px;">
<q-space />
<div v-if="!balanceLoaded && !manageAssets && asset.id === selectedAsset.id" style="width: 100%;">
Expand Down

0 comments on commit bf3b335

Please sign in to comment.