fix notification center title

This commit is contained in:
pa
2026-02-24 20:42:04 +09:00
committed by Natsumi
parent abc82e6988
commit b81c353a51
2 changed files with 3 additions and 7 deletions

View File

@@ -279,7 +279,7 @@
// if (n.senderUsername && n.senderUsername?.Value === null) {
// return n.title || n.data?.groupName || n.groupName || n.details?.groupName || '';
// }
return n.senderUsername || n.data?.groupName || n.groupName || n.details?.groupName || '';
return n.title || n.senderUsername || n.data?.groupName || n.groupName || n.details?.groupName || '';
});
const avatarUrl = computed(() => {
@@ -391,7 +391,7 @@
const groupDisplayName = computed(() => {
const n = props.notification;
return n.data?.groupName || n.groupName || n.details?.groupName || n.senderUsername || '';
return n.title || n.data?.groupName || n.groupName || n.details?.groupName || n.senderUsername || '';
});
const hoverTitle = computed(() => {

View File

@@ -33,11 +33,7 @@
</div>
<div class="flex justify-center py-3">
<Button
variant="ghost"
size="sm"
class="text-xs text-muted-foreground"
@click="$emit('navigate-to-table')">
<Button variant="secondary" size="sm" class="text-xs" @click="$emit('navigate-to-table')">
{{ t('side_panel.notification_center.view_more') }}
</Button>
</div>