From 501f0f78c19646b478b4f8f293d6425cd54eec34 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Sun, 3 Aug 2025 14:01:52 -0600 Subject: [PATCH] Update ListView.tsx --- .../components/ListView.tsx | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/src/components/overlays/notificationsModal/components/ListView.tsx b/src/components/overlays/notificationsModal/components/ListView.tsx index e2cdc4f7..21f30c77 100644 --- a/src/components/overlays/notificationsModal/components/ListView.tsx +++ b/src/components/overlays/notificationsModal/components/ListView.tsx @@ -180,12 +180,32 @@ export function ListView({ -
- {notification.description - .replace(/\n/g, " ") - .substring(0, 150)} - {notification.description.length > 150 ? "..." : ""} -
+") + .replace(/\n- /g, "
• ") + .replace( + /\n\*\*([^*]+)\*\*/g, + "
", + ) + .replace(/^/, "
") + .replace(/$/, "
") + .replace(/<\/p>/g, "") + .replace( + /
• /g, + '
•', + ) + .replace(/<\/p>/g, "
") + .substring(0, 150) + + (notification.description.length > 150 + ? "..." + : ""), + }} + />