mirror of
https://github.com/rustmailer/bichon.git
synced 2026-08-03 07:48:34 +02:00
update
This commit is contained in:
@@ -239,9 +239,9 @@ export function MailListTable({
|
||||
id: "text_preview",
|
||||
header: () => null,
|
||||
cell: ({ row }) => {
|
||||
const text = row.original.text
|
||||
const preview = row.original.preview
|
||||
|
||||
if (!text) return null
|
||||
if (!preview) return null
|
||||
|
||||
return (
|
||||
<HoverCard openDelay={200} closeDelay={150}>
|
||||
@@ -260,7 +260,7 @@ export function MailListTable({
|
||||
align="start"
|
||||
className="max-w-[520px] max-h-[420px] overflow-auto whitespace-pre-wrap text-xs leading-relaxed"
|
||||
>
|
||||
{text}
|
||||
{preview}
|
||||
</HoverCardContent>
|
||||
</HoverCard>
|
||||
)
|
||||
|
||||
@@ -116,9 +116,7 @@ export function MailThreadDialog({ open, onOpenChange }: MailThreadDialogProps)
|
||||
.sort((a, b) => a.date - b.date)
|
||||
.map((msg) => {
|
||||
const isExpanded = expandedIds.has(msg.id);
|
||||
const preview =
|
||||
msg.text?.slice(0, 120) +
|
||||
(msg.text?.length > 120 ? '...' : '');
|
||||
const preview = msg.preview;
|
||||
const date = new Date(msg.date);
|
||||
const formattedDate = isNaN(date.getTime())
|
||||
? t('search.thread.invalidDate')
|
||||
|
||||
Reference in New Issue
Block a user