From 3effca085c8af7326fb1ff9fb78d094c577e8795 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Tue, 13 Sep 2022 15:49:48 +0900 Subject: [PATCH] improve: Changed to move to the top when switching timeline --- CHANGELOG_CHERRYPICK.md | 1 + packages/client/src/pages/timeline.vue | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index f44e4886fc..987e585e4e 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -27,6 +27,7 @@ - 클라이언트: welcomeBack 알림을 옆으로 스와이프 해서 지울 수 있도록 개선 - 클라이언트: 새 노트 알림에 '노트 수 표시' 및 '알림 표시하지 않음' 옵션 추가 - 클라이언트: 모바일 환경에서 로그인 페이지 디자인 개선 +- 클라이언트: 타임라인 전환시 맨 위로 이동하도록 변경 ### Bugfixes - 클라이언트: 채팅방에서 메시지를 입력하고 있을 때 움직이지 않는 온점(.)이 표시되는 문제 diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 22ad5472ff..25bb90b9ab 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -127,21 +127,25 @@ const headerTabs = $computed(() => [{ title: i18n.ts._timelines.home, icon: 'fas fa-home', iconOnly: true, + onClick: top, }, ...(isLocalTimelineAvailable ? [{ key: 'local', title: i18n.ts._timelines.local, icon: 'fas fa-comments', iconOnly: true, + onClick: top, }, { key: 'social', title: i18n.ts._timelines.social, icon: 'fas fa-share-alt', iconOnly: true, + onClick: top, }] : []), ...(isGlobalTimelineAvailable ? [{ key: 'global', title: i18n.ts._timelines.global, icon: 'fas fa-globe', iconOnly: true, + onClick: top, }] : []), { icon: 'fas fa-list-ul', title: i18n.ts.lists,