From 1be9b35d019971bff782ee50318c2ab215bb8a6b Mon Sep 17 00:00:00 2001 From: alma Date: Wed, 16 Apr 2025 18:23:51 +0200 Subject: [PATCH] Neah version mail design fix 3 ? --- app/mail/page.tsx | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/app/mail/page.tsx b/app/mail/page.tsx index 5e2c2f1..7875a4c 100644 --- a/app/mail/page.tsx +++ b/app/mail/page.tsx @@ -1085,7 +1085,7 @@ export default function MailPage() { {sortedEmails.map((email) => (
handleEmailSelect(email.id)} @@ -1123,32 +1123,11 @@ export default function MailPage() {
-

+

{email.subject || '(No subject)'}

-
- - {(() => { - // Try to get clean preview text from the email body - let previewText = ''; - try { - // Remove HTML tags and decode entities - previewText = email.body - .replace(/<[^>]+>/g, '') // Remove HTML tags - .replace(/ /g, ' ') // Replace   with space - .replace(/\s+/g, ' ') // Normalize whitespace - .trim(); - - // Limit to a reasonable length - if (previewText.length > 100) { - previewText = previewText.substring(0, 100) + '...'; - } - } catch (e) { - previewText = ''; // Fallback to empty string if there's an error - } - return previewText || 'No preview available'; - })()} - +
+ --{email.id.toString().substring(0, 32)}...