Skip to content
Snippets Groups Projects
Commit 4767804b authored by syuilo's avatar syuilo
Browse files

🎨

parent 2244cf29
No related branches found
No related tags found
No related merge requests found
<template>
<div class="tdflqwzn" :class="{ isMe }">
<Transition :name="$store.state.animation ? 'y' : ''">
<div v-if="Object.keys(note.reactions).length > 0" class="tdflqwzn" :class="{ isMe }">
<TransitionGroup :name="$store.state.animation ? 'x' : ''">
<XReaction v-for="(count, reaction) in note.reactions" :key="reaction" :reaction="reaction" :count="count" :is-initial="initialReactions.has(reaction)" :note="note"/>
</TransitionGroup>
</div>
</Transition>
</template>
<script lang="ts" setup>
......@@ -22,6 +24,16 @@ 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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment