enhahce(client): 🎨 通知のノートサマリーを1行にする (#9625)

* 🎨 add nowrap to notification

* 🎨 通知のノートサマリーを1行にする
This commit is contained in:
tamaina 2023-01-17 06:22:57 +09:00 committed by GitHub
parent a69c78e709
commit f8d0902080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -267,9 +267,9 @@ useTooltip(reactionRef, (showing) => {
} }
.text { .text {
white-space: nowrap; display: flex;
overflow: hidden; width: 100%;
text-overflow: ellipsis; overflow: clip;
} }
.quote { .quote {

View File

@ -10,7 +10,7 @@
<template #default="{ items: notifications }"> <template #default="{ items: notifications }">
<MkDateSeparatedList v-slot="{ item: notification }" :class="$style.list" :items="notifications" :no-gap="true"> <MkDateSeparatedList v-slot="{ item: notification }" :class="$style.list" :items="notifications" :no-gap="true">
<XNote v-if="['reply', 'quote', 'mention'].includes(notification.type)" :key="notification.id" :note="notification.note"/> <XNote v-if="['reply', 'quote', 'mention'].includes(notification.type)" :key="notification.id" :note="notification.note"/>
<XNotification v-else :key="notification.id" :notification="notification" :with-time="true" :full="true" class="_panel notification"/> <XNotification v-else :key="notification.id" :notification="notification" :with-time="true" :full="false" class="_panel notification"/>
</MkDateSeparatedList> </MkDateSeparatedList>
</template> </template>
</MkPagination> </MkPagination>