don't show underline if no tabs

This commit is contained in:
ThatOneCalculator 2023-05-21 20:19:41 -07:00
parent 1abda5e8e7
commit 8da250059d

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>