Skip to content

Commit

Permalink
tier group v-if to remove extra spacing when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Aug 28, 2024
1 parent b267908 commit a90936a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/Block/Tier.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ const { data: block } = useAsyncData(props.uuid, () =>
<BaseBadge color="primary-reverse">{{ block.badge }}</BaseBadge>
</div>
<div class="content">
<h3>{{ block.name }}</h3>
<h3 v-if="block.name">{{ block.name }}</h3>
<small v-if="block.subtext">{{ block.subtext }}&nbsp;</small>
<p class="price">
<span class="value">{{ block.price }}</span>
<p v-if="block.price || block.term" class="price">
<span v-if="block.price" class="value">{{ block.price }}</span>
<br />
<span class="term">{{ block.term }}&nbsp;</span>
<span v-if="block.term" class="term">{{ block.term }}&nbsp;</span>
<span v-if="block.term_tooltip" v-tooltip="block.term_tooltip" class="info">
<BaseIcon size="small" name="info" />
</span>
Expand Down

0 comments on commit a90936a

Please sign in to comment.