diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index fdec985d0e..9d8a4a2bbf 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -68,6 +68,7 @@ - 네비게이션 메뉴 편집 페이지 UI 개선 ([shrimpia bf8c84d](https://github.com/shrimpia/misskey/commit/bf8c84d299bd06cb21e18a9fe68ff9abc11fd4a0)) - 「노트 본문에 번역 버튼 표시」를 선택 사항으로 설정 - 답글도 번역할 수 있도록 개선 +- 리노트 했을 때 뜨는 토스트 팝업에 아이콘 추가 - Fix: (Friendly) 플로팅 메뉴를 길게 눌렀을 때 프로필 이미지를 드래그 할 수 있는 문제 - Fix: (Friendly) 타임라인이 변경되었을 때 네비게이션 바의 인디케이터가 사라지지 않는 문제 - Fix: (Friendly) 모바일에서 헤더가 사라졌을 때 프로필 아이콘의 높이가 잘못 설정되는 문제 diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index a42659660d..2f7b4ecf3e 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -306,7 +306,7 @@ function renote(viaKeyboard = false) { renoteId: appearNote.id, channelId: appearNote.channelId, }).then(() => { - os.toast(i18n.ts.renoted); + os.noteToast(i18n.ts.renoted); }); }, }, { @@ -336,7 +336,7 @@ function renote(viaKeyboard = false) { os.api('notes/create', { renoteId: appearNote.id, }).then(() => { - os.toast(i18n.ts.renoted); + os.noteToast(i18n.ts.renoted); }); }, }, { diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index cce0898b38..b93899e2f1 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -274,7 +274,7 @@ function renote(viaKeyboard = false) { renoteId: appearNote.id, channelId: appearNote.channelId, }).then(() => { - os.toast(i18n.ts.renoted); + os.noteToast(i18n.ts.renoted); }); }, }, { @@ -304,7 +304,7 @@ function renote(viaKeyboard = false) { os.api('notes/create', { renoteId: appearNote.id, }).then(() => { - os.toast(i18n.ts.renoted); + os.noteToast(i18n.ts.renoted); }); }, }, { diff --git a/packages/frontend/src/components/MkNoteToast.vue b/packages/frontend/src/components/MkNoteToast.vue new file mode 100644 index 0000000000..a2520bb74e --- /dev/null +++ b/packages/frontend/src/components/MkNoteToast.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/packages/frontend/src/os.ts b/packages/frontend/src/os.ts index 7937caf536..1c4a2fc698 100644 --- a/packages/frontend/src/os.ts +++ b/packages/frontend/src/os.ts @@ -11,6 +11,7 @@ import MkPostFormDialog from '@/components/MkPostFormDialog.vue'; import MkWaitingDialog from '@/components/MkWaitingDialog.vue'; import MkPageWindow from '@/components/MkPageWindow.vue'; import MkToast from '@/components/MkToast.vue'; +import MkNoteToast from '@/components/MkNoteToast.vue'; import MkWelcomeToast from '@/components/MkWelcomeToast.vue'; import MkDialog from '@/components/MkDialog.vue'; import MkEmojiPickerDialog from '@/components/MkEmojiPickerDialog.vue'; @@ -179,6 +180,12 @@ export function toast(message: string) { }, {}, 'closed'); } +export function noteToast(message: string) { + popup(MkNoteToast, { + message, + }, {}, 'closed'); +} + export function welcomeToast(message: string) { popup(MkWelcomeToast, { message,