Merge branch 'fix/emoji-picker' into 'develop'
fix: use settings from reactionPicker for non-reaction emoji picker Co-authored-by: Lhcfl <Lhcfl@outlook.com> Closes #10905 See merge request firefish/firefish!10752
This commit is contained in:
commit
4fb2cab617
|
@ -231,15 +231,9 @@ const unicodeEmojiSkinToneLabels = [
|
||||||
i18n.ts._skinTones?.dark ?? "Dark",
|
i18n.ts._skinTones?.dark ?? "Dark",
|
||||||
];
|
];
|
||||||
|
|
||||||
const size = computed(() =>
|
const size = reactionPickerSize;
|
||||||
props.asReactionPicker ? reactionPickerSize.value : 1,
|
const width = reactionPickerWidth;
|
||||||
);
|
const height = reactionPickerHeight;
|
||||||
const width = computed(() =>
|
|
||||||
props.asReactionPicker ? reactionPickerWidth.value : 3,
|
|
||||||
);
|
|
||||||
const height = computed(() =>
|
|
||||||
props.asReactionPicker ? reactionPickerHeight.value : 2,
|
|
||||||
);
|
|
||||||
const customEmojiCategories = emojiCategories;
|
const customEmojiCategories = emojiCategories;
|
||||||
const customEmojis = instance.emojis;
|
const customEmojis = instance.emojis;
|
||||||
const q = ref<string | null>(null);
|
const q = ref<string | null>(null);
|
||||||
|
|
|
@ -39,7 +39,7 @@ import { defaultStore } from "@/store";
|
||||||
withDefaults(
|
withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
manualShowing?: boolean | null;
|
manualShowing?: boolean | null;
|
||||||
src?: HTMLElement;
|
src?: HTMLElement | null;
|
||||||
showPinned?: boolean;
|
showPinned?: boolean;
|
||||||
asReactionPicker?: boolean;
|
asReactionPicker?: boolean;
|
||||||
}>(),
|
}>(),
|
||||||
|
|
|
@ -1188,7 +1188,7 @@ async function insertEmoji(ev: MouseEvent) {
|
||||||
os.openEmojiPicker(
|
os.openEmojiPicker(
|
||||||
(ev.currentTarget ?? ev.target) as HTMLElement,
|
(ev.currentTarget ?? ev.target) as HTMLElement,
|
||||||
{},
|
{},
|
||||||
textareaEl.value,
|
textareaEl.value!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,14 +24,14 @@ class ReactionPicker {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
done: (reaction) => {
|
done: (reaction) => {
|
||||||
this.onChosen!(reaction);
|
this.onChosen?.(reaction);
|
||||||
},
|
},
|
||||||
close: () => {
|
close: () => {
|
||||||
this.manualShowing.value = false;
|
this.manualShowing.value = false;
|
||||||
},
|
},
|
||||||
closed: () => {
|
closed: () => {
|
||||||
this.src.value = null;
|
this.src.value = null;
|
||||||
this.onClosed!();
|
this.onClosed?.();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue