From 2744cbd310e7e1b7792fe455602f6e2cf376120d Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 2 Mar 2024 07:05:17 +0000 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20MkCustomEmoji=E3=81=A7?= =?UTF-8?q?=E3=83=95=E3=82=A9=E3=83=BC=E3=83=AB=E3=83=90=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=92=E3=83=86=E3=82=AD=E3=82=B9=E3=83=88=E3=81=8B=E7=94=BB?= =?UTF-8?q?=E5=83=8F=E3=81=8B=E9=81=B8=E3=81=B9=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=20fix=20of=20#13487?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkAutocomplete.vue | 2 +- .../frontend/src/components/MkEmojiPicker.section.vue | 2 +- packages/frontend/src/components/MkEmojiPicker.vue | 2 +- packages/frontend/src/components/MkReactionIcon.vue | 2 +- .../components/global/MkCustomEmoji.stories.impl.ts | 10 +++++++++- .../frontend/src/components/global/MkCustomEmoji.vue | 4 +++- .../src/components/global/MkMisskeyFlavoredMarkdown.ts | 1 + packages/frontend/src/pages/about-misskey.vue | 2 +- packages/frontend/src/pages/settings/emoji-picker.vue | 4 ++-- 9 files changed, 20 insertions(+), 9 deletions(-) diff --git a/packages/frontend/src/components/MkAutocomplete.vue b/packages/frontend/src/components/MkAutocomplete.vue index 2f3855266c..932c4ecb2e 100644 --- a/packages/frontend/src/components/MkAutocomplete.vue +++ b/packages/frontend/src/components/MkAutocomplete.vue @@ -22,7 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only
  1. - + diff --git a/packages/frontend/src/components/MkEmojiPicker.section.vue b/packages/frontend/src/components/MkEmojiPicker.section.vue index 012972d8eb..c13164c296 100644 --- a/packages/frontend/src/components/MkEmojiPicker.section.vue +++ b/packages/frontend/src/components/MkEmojiPicker.section.vue @@ -20,7 +20,7 @@ SPDX-License-Identifier: AGPL-3.0-only @pointerenter="computeButtonTitle" @click="emit('chosen', emoji, $event)" > - + diff --git a/packages/frontend/src/components/MkEmojiPicker.vue b/packages/frontend/src/components/MkEmojiPicker.vue index e30d5969d9..8a6bef54d8 100644 --- a/packages/frontend/src/components/MkEmojiPicker.vue +++ b/packages/frontend/src/components/MkEmojiPicker.vue @@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only tabindex="0" @click="chosen(emoji, $event)" > - +
    diff --git a/packages/frontend/src/components/MkReactionIcon.vue b/packages/frontend/src/components/MkReactionIcon.vue index 59ceab27dc..068a2968db 100644 --- a/packages/frontend/src/components/MkReactionIcon.vue +++ b/packages/frontend/src/components/MkReactionIcon.vue @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only --> diff --git a/packages/frontend/src/components/global/MkCustomEmoji.stories.impl.ts b/packages/frontend/src/components/global/MkCustomEmoji.stories.impl.ts index 2e791e991e..9e6177045d 100644 --- a/packages/frontend/src/components/global/MkCustomEmoji.stories.impl.ts +++ b/packages/frontend/src/components/global/MkCustomEmoji.stories.impl.ts @@ -48,10 +48,18 @@ export const Missing = { name: Default.args.name, }, } satisfies StoryObj; -export const Error = { +export const ErrorToText = { ...Default, args: { url: 'https://example.com/404', name: Default.args.name, }, } satisfies StoryObj; +export const ErrorToImage = { + ...Default, + args: { + url: 'https://example.com/404', + name: Default.args.name, + fallbackToImage: true, + }, +} satisfies StoryObj; diff --git a/packages/frontend/src/components/global/MkCustomEmoji.vue b/packages/frontend/src/components/global/MkCustomEmoji.vue index 67927ddd22..6123835340 100644 --- a/packages/frontend/src/components/global/MkCustomEmoji.vue +++ b/packages/frontend/src/components/global/MkCustomEmoji.vue @@ -5,11 +5,12 @@ SPDX-License-Identifier: AGPL-3.0-only