mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 18:33:09 +02:00
enhance(client): リアクションが無いことを伝える (#9901)
This commit is contained in:
parent
19c204ea03
commit
317770fb23
1 changed files with 14 additions and 8 deletions
|
@ -10,15 +10,21 @@
|
||||||
|
|
||||||
<MkSpacer :margin-min="20" :margin-max="28">
|
<MkSpacer :margin-min="20" :margin-max="28">
|
||||||
<div v-if="note" class="_gaps">
|
<div v-if="note" class="_gaps">
|
||||||
<div :class="$style.tabs">
|
<div v-if="reactions.length === 0" class="_fullinfo">
|
||||||
<button v-for="reaction in reactions" :key="reaction" :class="[$style.tab, { [$style.tabActive]: tab === reaction }]" class="_button" @click="tab = reaction">
|
<img src="https://xn--931a.moe/assets/info.jpg" class="_ghost"/>
|
||||||
<MkReactionIcon :reaction="reaction"/>
|
<div>{{ i18n.ts.nothing }}</div>
|
||||||
<span style="margin-left: 4px;">{{ note.reactions[reaction] }}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
<MkA v-for="user in users" :key="user.id" :to="userPage(user)">
|
<template v-else>
|
||||||
<MkUserCardMini :user="user" :with-chart="false"/>
|
<div :class="$style.tabs">
|
||||||
</MkA>
|
<button v-for="reaction in reactions" :key="reaction" :class="[$style.tab, { [$style.tabActive]: tab === reaction }]" class="_button" @click="tab = reaction">
|
||||||
|
<MkReactionIcon :reaction="reaction"/>
|
||||||
|
<span style="margin-left: 4px;">{{ note.reactions[reaction] }}</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<MkA v-for="user in users" :key="user.id" :to="userPage(user)">
|
||||||
|
<MkUserCardMini :user="user" :with-chart="false"/>
|
||||||
|
</MkA>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<MkLoading/>
|
<MkLoading/>
|
||||||
|
|
Loading…
Reference in a new issue