Skip to content

Commit a3b2ec4

Browse files
committed
tweak
1 parent 888f8b2 commit a3b2ec4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/frontend/src/components/MkEmojiPicker.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ SPDX-License-Identifier: AGPL-3.0-only
3636
</section>
3737

3838
<div v-if="tab === 'index'" class="group index">
39-
<section v-if="showPinned">
39+
<section v-if="showPinned && pinned.length > 0">
4040
<div class="body">
4141
<button
4242
v-for="emoji in pinned"
@@ -128,14 +128,15 @@ const searchEl = shallowRef<HTMLInputElement>();
128128
const emojisEl = shallowRef<HTMLDivElement>();
129129

130130
const {
131-
reactions: pinned,
131+
reactions: pinnedReactions,
132132
reactionPickerSize,
133133
reactionPickerWidth,
134134
reactionPickerHeight,
135135
disableShowingAnimatedImages,
136136
recentlyUsedEmojis,
137137
} = defaultStore.reactiveState;
138138

139+
const pinned = computed(() => props.asReactionPicker ? pinnedReactions.value : []); // TODO: 非リアクションの絵文字ピッカー用のpinned絵文字を設定可能にする?
139140
const size = computed(() => props.asReactionPicker ? reactionPickerSize.value : 1);
140141
const width = computed(() => props.asReactionPicker ? reactionPickerWidth.value : 3);
141142
const height = computed(() => props.asReactionPicker ? reactionPickerHeight.value : 2);

packages/frontend/src/scripts/emoji-picker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EmojiPicker {
2525
public async init() {
2626
await popup(defineAsyncComponent(() => import('@/components/MkEmojiPickerDialog.vue')), {
2727
src: this.src,
28-
asReactionPicker: true,
28+
asReactionPicker: false,
2929
manualShowing: this.manualShowing,
3030
choseAndClose: false,
3131
}, {

0 commit comments

Comments
 (0)