fix use of :key on "more" slot in MkReactionsViewer

This commit is contained in:
Hazelnoot 2025-05-29 12:42:58 -04:00 committed by kakkokari-gtyih
parent 8028c4e8c2
commit 14bd7f5030
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:myReaction="props.myReaction" :myReaction="props.myReaction"
@reactionToggled="onMockToggleReaction" @reactionToggled="onMockToggleReaction"
/> />
<slot v-if="hasMoreReactions" name="more"/> <slot v-if="hasMoreReactions" :key="'$more'" name="more"/>
</SkTransitionGroup> </SkTransitionGroup>
</template> </template>
@ -115,7 +115,7 @@ watch([() => props.reactions, () => props.maxNumber], ([newSource, maxNumber]) =
position: absolute; position: absolute;
} }
.root { .root, .moreReactions {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;