Skip to content

Commit bf3b335

Browse files
committed
Load asset icon only when asset card is visible in the page
1 parent e828da5 commit bf3b335

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/components/asset-cards.vue

+8-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
:style="{ 'margin-left': index === 0 ? '0px' : '12px' }"
1313
v-touch-pan="handlePan"
1414
>
15-
<div class="row items-start no-wrap justify-between" style="margin-top: -6px;">
16-
<img :src="getImageUrl(asset)" height="30" class="q-mr-xs" alt="">
17-
<p class="col q-pl-sm text-right asset-symbol" :class="{'text-grad' : isNotDefaultTheme}">
18-
{{ asset.symbol }}
19-
</p>
20-
</div>
15+
<q-intersection>
16+
<div class="row items-start no-wrap justify-between" style="margin-top: -6px;">
17+
<img :src="getImageUrl(asset)" height="30" class="q-mr-xs" alt="">
18+
<p class="col q-pl-sm text-right asset-symbol" :class="{'text-grad' : isNotDefaultTheme}">
19+
{{ asset.symbol }}
20+
</p>
21+
</div>
22+
</q-intersection>
2123
<div class="row" style="margin-top: -7px;">
2224
<q-space />
2325
<div v-if="!balanceLoaded && !manageAssets && asset.id === selectedAsset.id" style="width: 100%;">

0 commit comments

Comments
 (0)