diff --git a/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx b/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx index 207d99bb..da91fc97 100644 --- a/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx +++ b/src/equicordplugins/toastNotifications/components/NotificationComponent.tsx @@ -123,14 +123,12 @@ export default ErrorBoundary.wrap(function NotificationComponent({
- {renderBody ? ( - richBody ?? ( -

- {body.length > 500 ? body.slice(0, 500) + "..." : body} -

- ) - ) : null} - + {renderBody && ( +

+ {(richBody ?? body).toString().slice(0, 500)} + {(richBody ?? body).toString().length > 500 && "..."} +

+ )} {PluginSettings.store.renderImages && image && ToastNotification Image} {footer &&

{`${attachments} attachment${attachments > 1 ? "s" : ""} ${attachments > 1 ? "were" : "was"} sent.`}

}
@@ -139,7 +137,7 @@ export default ErrorBoundary.wrap(function NotificationComponent({ {AppearanceSettings.timeout !== 0 && !permanent && (
)} diff --git a/src/equicordplugins/toastNotifications/components/styles.css b/src/equicordplugins/toastNotifications/components/styles.css index 89fd0ba0..54b24cd0 100644 --- a/src/equicordplugins/toastNotifications/components/styles.css +++ b/src/equicordplugins/toastNotifications/components/styles.css @@ -25,6 +25,7 @@ /* Progress Bar */ --toastnotifications-progressbar-height: 0.25rem; + --toastnotifications-progressbar-color: var(--brand-500); /* Position Offset - Global inherited offset by all positions */ --toastnotifications-position-offset: 1rem;