Skip to content

Commit

Permalink
fix: mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Feb 25, 2025
1 parent a1df172 commit 77eb60f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/app/src/components/token/TokenListTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
<CopyButton :value="item.l2Address" />
</div>
</TableBodyColumn>
<TableBodyColumn :data-heading="t('tokensView.table.tokenAddressL1')">
<div v-if="item.l1Address && item.l1Address !== BASE_TOKEN_L1_ADDRESS" class="token-address-container max-w-sm">
<TableBodyColumn
:data-heading="shouldDisplayL1Address(item.l1Address) ? t('tokensView.table.tokenAddressL1') : ''"
>
<div v-if="shouldDisplayL1Address(item.l1Address)" class="token-address-container max-w-sm">
<TransactionNetworkSquareBlock network="L1" />
<AddressLink
:data-testid="$testId.tokenAddress"
Expand Down Expand Up @@ -73,7 +75,7 @@
<ContentLoader class="w-16" />
</TableBodyColumn>
<TableBodyColumn>
<ContentLoader />
<ContentLoader class="w-16" />
</TableBodyColumn>
</tr>
</template>
Expand Down Expand Up @@ -118,6 +120,10 @@ const { width } = useElementSize(table);
watch(width, () => {
width.value <= 500 ? (subtraction.value = 10) : (subtraction.value = 5);
});
const shouldDisplayL1Address = (l1Address?: string) => {
return l1Address && l1Address !== BASE_TOKEN_L1_ADDRESS;
};
</script>

<style scoped lang="scss">
Expand Down

0 comments on commit 77eb60f

Please sign in to comment.