[UI] Fix NewsWidget (#12205)

This commit is contained in:
Oliver 2026-06-19 17:18:59 +10:00 committed by GitHub
parent 01fb74af25
commit 6657000d89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 3 deletions

View File

@ -130,9 +130,13 @@ export default function NewsWidget() {
<NewsItem key={item.pk} item={item} onMarkRead={markRead} />
))
) : (
<Table.Tr>
<Table.Td colSpan={3}>
<Alert color='green' title={t`No News`}>
<Text>{t`There are no unread news items`}</Text>
</Alert>
</Table.Td>
</Table.Tr>
)}
</Table.Tbody>
</Table>