From 00360898f5d63277024a307220261c6326ffdf5b Mon Sep 17 00:00:00 2001 From: fly_mc Date: Mon, 28 Oct 2024 03:56:43 +0800 Subject: [PATCH] Revert "frontend: merge reactions" This reverts commit 8f00aecd88930612cf20130cfe02373c9ec59a6b. --- .../components/MkReactionsViewer.details.vue | 2 +- .../components/MkReactionsViewer.reaction.vue | 150 +++++------------- .../src/components/MkReactionsViewer.vue | 58 +------ 3 files changed, 43 insertions(+), 167 deletions(-) diff --git a/packages/frontend/src/components/MkReactionsViewer.details.vue b/packages/frontend/src/components/MkReactionsViewer.details.vue index ce2f453a6..f4c3643ba 100644 --- a/packages/frontend/src/components/MkReactionsViewer.details.vue +++ b/packages/frontend/src/components/MkReactionsViewer.details.vue @@ -30,7 +30,7 @@ import MkReactionIcon from '@/components/MkReactionIcon.vue'; defineProps<{ showing: boolean; reaction: string; - users: any[]; + users: any[]; // TODO count: number; targetElement: HTMLElement; }>(); diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue index 16326fa3f..53c1f400e 100644 --- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue +++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue @@ -8,8 +8,8 @@ SPDX-License-Identifier: AGPL-3.0-only ref="buttonEl" v-ripple="canToggle" class="_button" - :class="[$style.root, { [$style.reacted]: isReacted, [$style.canToggle]: canToggle, [$style.small]: defaultStore.state.reactionsDisplaySize === 'small', [$style.large]: defaultStore.state.reactionsDisplaySize === 'large' }]" - @click.stop="toggleReaction()" + :class="[$style.root, { [$style.reacted]: note.myReaction == reaction, [$style.canToggle]: canToggle, [$style.small]: defaultStore.state.reactionsDisplaySize === 'small', [$style.large]: defaultStore.state.reactionsDisplaySize === 'large' }]" + @click.stop="toggleReaction()" @contextmenu.prevent.stop="menu" > @@ -18,7 +18,7 @@ SPDX-License-Identifier: AGPL-3.0-only