From 2996a8feb1c677c0db46b8df5f4f96ca36b5e25f Mon Sep 17 00:00:00 2001 From: NoriDev Date: Fri, 2 Jun 2023 21:02:39 +0900 Subject: [PATCH] =?UTF-8?q?feat(client/friendly):=20=E3=83=81=E3=83=A3?= =?UTF-8?q?=E3=83=83=E3=83=88=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=AB=E3=83=95?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=83=86=E3=82=A3=E3=83=B3=E3=82=B0=E3=83=9C?= =?UTF-8?q?=E3=82=BF=E3=83=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG_CHERRYPICK.md | 1 + packages/frontend/src/pages/messaging/index.vue | 5 +++++ packages/frontend/src/ui/friendly.vue | 9 +++++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index a1222aeb9f..536cf90a45 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -36,6 +36,7 @@ - (Friendly) 데스크톱 헤더 디자인 개선 - (Friendly) 데스크톱 모드에서 타임라인 옆에 알림 영역을 배치하도록 - (Friendly) 오조작 방지를 위해 플로팅 버튼을 길게 눌러 새로고침 기능 제거 +- (Friendly) 채팅 탭에 플로팅 버튼 추가 - 클라이언트에서 사용되는 폰트의 확장자를 ttf에서 woff2 및 woff로 변경 ([@mk-castella](https://github.com/libnare/mk-castella/commit/f439b3e007618c02da7a352016b3d0f397311f54)) - about-misskey 페이지에 CherryPick 관련 정보 추가 및 Misskey 문단 구분명 추가 - 노트 수식 삽입 기능 복원 (MathML 호환을 위해 기존에 제거된 KaTex를 Temml로 대체 ([misskey-dev/misskey#9754](https://github.com/misskey-dev/misskey/issues/9754))) diff --git a/packages/frontend/src/pages/messaging/index.vue b/packages/frontend/src/pages/messaging/index.vue index e36a272c0a..8020d81f34 100644 --- a/packages/frontend/src/pages/messaging/index.vue +++ b/packages/frontend/src/pages/messaging/index.vue @@ -53,6 +53,7 @@ import { useRouter } from '@/router'; import { i18n } from '@/i18n'; import { definePageMetadata } from '@/scripts/page-metadata'; import { $i } from '@/account'; +import { eventBus } from '@/scripts/cherrypick/eventBus'; const router = useRouter(); @@ -145,6 +146,10 @@ onMounted(() => { fetching = false; }); }); + + eventBus.on('openMessage', (ev) => { + start(ev); + }); }); onUnmounted(() => { diff --git a/packages/frontend/src/ui/friendly.vue b/packages/frontend/src/ui/friendly.vue index 1aa2c00635..f59fe45f22 100644 --- a/packages/frontend/src/ui/friendly.vue +++ b/packages/frontend/src/ui/friendly.vue @@ -16,9 +16,10 @@ - + - + + @@ -263,6 +264,10 @@ function closeAccountMenu() { longTouchNavHome = false; } +function openMessage(ev: MouseEvent) { + eventBus.emit('openMessage', ev); +} + let navFooterHeight = $ref(0); provide>(CURRENT_STICKY_BOTTOM, $$(navFooterHeight));