enhance(frontend): 타임라인에서 새 노트가 20개 이상이면 '20+'로 표기
This commit is contained in:
parent
304e551392
commit
74ddde4424
|
@ -31,6 +31,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE
|
|||
### Client
|
||||
- Feat: 노트 편집 시 토스트 알림을 표시하고 사운드를 재생
|
||||
- Enhance: 노트를 편집할 때 편집 중인 노트임을 강조함
|
||||
- Enhance: 타임라인에서 새 노트가 20개 이상이면 '20+'로 표기
|
||||
- Fix: '새 노트 알림'을 '노트 수 표시'로 설정했을 때 한국어 이외의 언어에서 내용이 표시되지 않음
|
||||
|
||||
### Server
|
||||
|
|
|
@ -20,7 +20,15 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
:enterFromClass="defaultStore.state.animation ? $style.transition_new_enterFrom : ''"
|
||||
:leaveToClass="defaultStore.state.animation ? $style.transition_new_leaveTo : ''"
|
||||
>
|
||||
<div v-if="queue > 0 && defaultStore.state.newNoteReceivedNotificationBehavior === 'default'" :class="[$style.new, { [$style.showEl]: (showEl && ['hideHeaderOnly', 'hideHeaderFloatBtn', 'hide'].includes(<string>defaultStore.state.displayHeaderNavBarWhenScroll)) && isMobile && !isFriendly, [$style.showElTab]: (showEl && ['hideHeaderOnly', 'hideHeaderFloatBtn', 'hide'].includes(<string>defaultStore.state.displayHeaderNavBarWhenScroll)) && isMobile && isFriendly, [$style.reduceAnimation]: !defaultStore.state.animation }]"><button class="_buttonPrimary" :class="$style.newButton" @click="top()"><i class="ti ti-arrow-up"></i>{{ i18n.ts.newNoteRecived }}</button></div>
|
||||
<div
|
||||
v-if="queue > 0 && defaultStore.state.newNoteReceivedNotificationBehavior === 'default'"
|
||||
:class="[$style.new, { [$style.showEl]: (showEl && ['hideHeaderOnly', 'hideHeaderFloatBtn', 'hide'].includes(<string>defaultStore.state.displayHeaderNavBarWhenScroll)) && isMobile && !isFriendly, [$style.showElTab]: (showEl && ['hideHeaderOnly', 'hideHeaderFloatBtn', 'hide'].includes(<string>defaultStore.state.displayHeaderNavBarWhenScroll)) && isMobile && isFriendly, [$style.reduceAnimation]: !defaultStore.state.animation }]"
|
||||
>
|
||||
<button class="_buttonPrimary" :class="$style.newButton" @click="top()">
|
||||
<i class="ti ti-arrow-up"></i>
|
||||
{{ i18n.ts.newNoteRecived }}
|
||||
</button>
|
||||
</div>
|
||||
</transition>
|
||||
<transition
|
||||
:enterActiveClass="defaultStore.state.animation ? $style.transition_new_enterActive : ''"
|
||||
|
@ -28,7 +36,17 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
:enterFromClass="defaultStore.state.animation ? $style.transition_new_enterFrom : ''"
|
||||
:leaveToClass="defaultStore.state.animation ? $style.transition_new_leaveTo : ''"
|
||||
>
|
||||
<div v-if="queue > 0 && defaultStore.state.newNoteReceivedNotificationBehavior === 'count'" :class="[$style.new, { [$style.showEl]: (showEl && ['hideHeaderOnly', 'hideHeaderFloatBtn', 'hide'].includes(<string>defaultStore.state.displayHeaderNavBarWhenScroll)) && isMobile && !isFriendly, [$style.showElTab]: (showEl && ['hideHeaderOnly', 'hideHeaderFloatBtn', 'hide'].includes(<string>defaultStore.state.displayHeaderNavBarWhenScroll)) && isMobile && isFriendly, [$style.reduceAnimation]: !defaultStore.state.animation }]"><button class="_buttonPrimary" :class="$style.newButton" @click="top()"><i class="ti ti-arrow-up"></i><I18n :src="i18n.ts.newNoteRecivedCount" textTag="span"><template #n>{{ queue }}</template></I18n></button></div>
|
||||
<div
|
||||
v-if="queue > 0 && defaultStore.state.newNoteReceivedNotificationBehavior === 'count'"
|
||||
:class="[$style.new, { [$style.showEl]: (showEl && ['hideHeaderOnly', 'hideHeaderFloatBtn', 'hide'].includes(<string>defaultStore.state.displayHeaderNavBarWhenScroll)) && isMobile && !isFriendly, [$style.showElTab]: (showEl && ['hideHeaderOnly', 'hideHeaderFloatBtn', 'hide'].includes(<string>defaultStore.state.displayHeaderNavBarWhenScroll)) && isMobile && isFriendly, [$style.reduceAnimation]: !defaultStore.state.animation }]"
|
||||
>
|
||||
<button class="_buttonPrimary" :class="$style.newButton" @click="top()">
|
||||
<i class="ti ti-arrow-up"></i>
|
||||
<I18n :src="i18n.ts.newNoteRecivedCount" textTag="span">
|
||||
<template #n>{{ queue > 19 ? queue + '+' : queue }}</template>
|
||||
</I18n>
|
||||
</button>
|
||||
</div>
|
||||
</transition>
|
||||
<div :class="$style.tl">
|
||||
<MkTimeline
|
||||
|
|
Loading…
Reference in a new issue