enhance(client): 一度見たノートのRenoteは省略して表示するように

Resolve #1792
This commit is contained in:
syuilo 2023-02-11 09:41:54 +09:00
parent 9351fb9617
commit 8bd2d6328a
5 changed files with 59 additions and 9 deletions

View file

@ -1,6 +1,6 @@
<template>
<div ref="elRef" :class="$style.root">
<div v-once :class="$style.head">
<div :class="$style.head">
<MkAvatar v-if="notification.type === 'pollEnded'" :class="$style.icon" :user="notification.note.user" link preview/>
<MkAvatar v-else-if="notification.type === 'achievementEarned'" :class="$style.icon" :user="$i" link preview/>
<MkAvatar v-else-if="notification.user" :class="$style.icon" :user="notification.user" link preview/>
@ -35,7 +35,7 @@
<span v-else>{{ notification.header }}</span>
<MkTime v-if="withTime" :time="notification.createdAt" :class="$style.headerTime"/>
</header>
<div v-once :class="$style.content">
<div :class="$style.content">
<MkA v-if="notification.type === 'reaction'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note)">
<i class="ti ti-quote" :class="$style.quote"></i>
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :author="notification.note.user"/>