mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 11:27:31 -07:00
fix
This commit is contained in:
parent
5a6dbc1ba3
commit
dfdd7520dd
2 changed files with 35 additions and 46 deletions
|
@ -137,7 +137,7 @@
|
|||
<MkLoading v-else-if="tab === 'clips' && clips.length > 0" />
|
||||
|
||||
<MkReactedUsers
|
||||
v-if="tab === 'reactions'"
|
||||
v-if="tab === 'reactions' && reactionsCount > 0"
|
||||
:note-id="appearNote.id"
|
||||
></MkReactedUsers>
|
||||
</div>
|
||||
|
@ -253,7 +253,7 @@ let clips = $ref();
|
|||
let renotes = $ref();
|
||||
let isScrolling;
|
||||
|
||||
const reactionsCount = Object.values(props.note.reactions).reduce((x,y) => x + y);
|
||||
const reactionsCount = Object.values(props.note.reactions).reduce((x,y) => x + y, 0);
|
||||
|
||||
const keymap = {
|
||||
r: () => reply(true),
|
||||
|
|
|
@ -1,14 +1,5 @@
|
|||
<template>
|
||||
<div v-if="note" class="_gaps reacted-users">
|
||||
<div v-if="reactions.length === 0" class="_fullinfo">
|
||||
<img
|
||||
src="/static-assets/badges/info.png"
|
||||
class="_ghost"
|
||||
alt="Info"
|
||||
/>
|
||||
<div>{{ i18n.ts.nothing }}</div>
|
||||
</div>
|
||||
<template v-else>
|
||||
<div :class="$style.tabs">
|
||||
<button
|
||||
v-for="reaction in reactions"
|
||||
|
@ -43,7 +34,6 @@
|
|||
:user="user"
|
||||
:with-chart="false"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
<div v-else>
|
||||
<MkLoading />
|
||||
|
@ -55,7 +45,6 @@ import { onMounted, watch } from "vue";
|
|||
import * as misskey from "calckey-js";
|
||||
import MkReactionIcon from "@/components/MkReactionIcon.vue";
|
||||
import MkUserCardMini from "@/components/MkUserCardMini.vue";
|
||||
import { userPage } from "@/filters/user";
|
||||
import { i18n } from "@/i18n";
|
||||
import * as os from "@/os";
|
||||
|
||||
|
|
Loading…
Reference in a new issue