From 4d39d1caf6fa733beb2b18a7d1cc73479c1571b3 Mon Sep 17 00:00:00 2001 From: syuilo <Syuilotan@yahoo.co.jp> Date: Mon, 9 Jan 2023 20:41:52 +0900 Subject: [PATCH] :art: --- .../src/components/MkReactionsViewer.vue | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/packages/frontend/src/components/MkReactionsViewer.vue b/packages/frontend/src/components/MkReactionsViewer.vue index aa4608f849..724489bf86 100644 --- a/packages/frontend/src/components/MkReactionsViewer.vue +++ b/packages/frontend/src/components/MkReactionsViewer.vue @@ -1,9 +1,7 @@ <template> -<Transition :name="$store.state.animation ? 'y' : ''"> - <TransitionGroup v-if="Object.keys(note.reactions).length > 0" :name="$store.state.animation ? 'x' : ''" tag="div" class="tdflqwzn" :class="{ isMe }"> - <XReaction v-for="(count, reaction) in note.reactions" :key="reaction" :reaction="reaction" :count="count" :is-initial="initialReactions.has(reaction)" :note="note"/> - </TransitionGroup> -</Transition> +<TransitionGroup :name="$store.state.animation ? 'x' : ''" tag="div" class="tdflqwzn" :class="{ isMe }"> + <XReaction v-for="(count, reaction) in note.reactions" :key="reaction" :reaction="reaction" :count="count" :is-initial="initialReactions.has(reaction)" :note="note"/> +</TransitionGroup> </template> <script lang="ts" setup> @@ -22,16 +20,6 @@ const isMe = computed(() => $i && $i.id === props.note.userId); </script> <style lang="scss" scoped> -.y-enter-active, .y-leave-active { - overflow: clip; - max-height: 36px; - transition: opacity 0.2s cubic-bezier(0,.5,.5,1), max-height 0.2s cubic-bezier(0,.5,.5,1) !important; -} -.y-enter-from, .y-leave-to { - max-height: 0px; - opacity: 0; -} - .x-move, .x-enter-active, .x-leave-active { transition: opacity 0.2s cubic-bezier(0,.5,.5,1), transform 0.2s cubic-bezier(0,.5,.5,1) !important; }