don't show underline if no tabs

This commit is contained in:
ThatOneCalculator 2023-05-21 20:19:41 -07:00
parent 3d9212c0d6
commit 6ef6b62fb2
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -33,7 +33,19 @@
detailedView detailedView
></MkNote> ></MkNote>
<MkTab v-model="tab" :style="'underline'" @update:modelValue="loadTab"> <MkTab
v-model="tab"
:style="
appearNote.repliesCount > 0 &&
appearNote.renoteCount > 0 &&
reactionsCount > 0 &&
directQuotes?.length > 0 &&
clips?.length > 0
? 'underline'
: ''
"
@update:modelValue="loadTab"
>
<option value="replies" v-if="appearNote.repliesCount > 0"> <option value="replies" v-if="appearNote.repliesCount > 0">
<i class="ph-arrow-u-up-left ph-bold ph-lg"></i> <i class="ph-arrow-u-up-left ph-bold ph-lg"></i>
<span class="count">{{ appearNote.repliesCount }}</span> <span class="count">{{ appearNote.repliesCount }}</span>