Skip to content

Commit

Permalink
Merge pull request #148 from jason5ng32/dev
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
jason5ng32 authored Apr 1, 2024
2 parents 415c658 + 83e12c0 commit 90299eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ipcheck.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<div class="jn-card-deck">
<div class="row">
<div v-for="(card, index) in ipDataCards" :key="card.id" :ref="card.id"
:class="{ 'jn-opacity': !card.asn, 'col-xl-4': true, 'col-lg-6': true, 'col-md-6': true, 'mb-4': true }">
:class="{ 'jn-opacity': !card.ip || card.ip === $t('ipInfos.IPv4Error') || card.ip === $t('ipInfos.IPv6Error'), 'col-xl-4': true, 'col-lg-6': true, 'col-md-6': true, 'mb-4': true }">
<div class="card jn-card" :class="{
'dark-mode dark-mode-border': isDarkMode,
'jn-ip-card1': !isMobile && ipGeoSource === 0,
Expand All @@ -85,7 +85,7 @@
<span class="jn-text col-auto">
<i class="bi bi-pc-display-horizontal"></i>&nbsp;
</span>
<span v-if="(card.asn) || (card.ip === $t('ipInfos.IPv4Error')) || (card.ip === $t('ipInfos.IPv6Error'))"
<span v-if="card.ip"
class="col-10" :class="{ 'jn-ip-font': (isMobile && card.ip.length > 32) }">
{{ card.ip }}&nbsp;
<i v-if="isValidIP(card.ip)"
Expand Down

0 comments on commit 90299eb

Please sign in to comment.