Skip to content

Commit

Permalink
chore: adjusts styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodressel committed May 8, 2024
1 parent 8063adc commit 843c44f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/TokenIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
:src="mapToken(tokenA)"
alt=""
/>
<AeIcon
v-else-if="tokenA && tokenA.is_ae"
:class="{ rotating, 'not-pool-token': !tokenB }" />
<AeIcon v-else-if="tokenA && tokenA.is_ae" :class="{ rotating, 'not-pool-token': !tokenB }" />
<img v-if="tokenB && !tokenB.is_ae" :class="{ rotating }" :src="mapToken(tokenB)" alt="" />
<AeIcon v-else-if="tokenB && tokenB.is_ae" />
</div>
Expand All @@ -28,23 +26,25 @@ export default {
},
methods: {
mapToken(token) {
return `https://avatars.z52da5wt.xyz/${token.contract_id}`;
return `https://avatars.z52da5wt.xyz/${token.contract_id}`;
},
}
},
};
</script>

<style lang="scss" scoped>
.token-icon {
display: flex;
img, svg {
img,
svg {
height: 24px;
width: 24px;
border-radius: 24px;
}
img:not(.not-pool-token):nth-of-type(2), svg:not(.not-pool-token):nth-of-type(2) {
img:not(.not-pool-token):nth-of-type(2),
svg:not(.not-pool-token):nth-of-type(2) {
margin-left: -10px;
}
}
Expand Down

0 comments on commit 843c44f

Please sign in to comment.