From 0e291493635119d135013279addecec852af8bd2 Mon Sep 17 00:00:00 2001 From: Sean Hagstrom Date: Mon, 8 Apr 2024 13:32:17 +0100 Subject: [PATCH] Truncate text inside contact request notifications (#19499) * tweak: truncate text inside contact request notifications to be a max of two lines * tweak: truncate text inside the activity-center contact-requests to be a max of two lines --- src/quo/components/notifications/notification/view.cljs | 1 + .../activity_center/notification/contact_requests/view.cljs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/quo/components/notifications/notification/view.cljs b/src/quo/components/notifications/notification/view.cljs index 9218b7432e..c189cd31b9 100644 --- a/src/quo/components/notifications/notification/view.cljs +++ b/src/quo/components/notifications/notification/view.cljs @@ -39,6 +39,7 @@ {:size :paragraph-2 :weight :medium :style (style/text theme) + :number-of-lines 2 :accessibility-label :notification-content} text]) diff --git a/src/status_im/contexts/shell/activity_center/notification/contact_requests/view.cljs b/src/status_im/contexts/shell/activity_center/notification/contact_requests/view.cljs index 1eba8965f8..a05ab2318b 100644 --- a/src/status_im/contexts/shell/activity_center/notification/contact_requests/view.cljs +++ b/src/status_im/contexts/shell/activity_center/notification/contact_requests/view.cljs @@ -113,7 +113,8 @@ :unread? (not (:read notification)) :context [[common/user-avatar-tag author] (i18n/label :t/contact-request-sent)] - :message {:body (get-in message [:content :text])} + :message {:body (get-in message [:content :text]) + :body-number-of-lines 2} :items (condp = (:contact-request-state message) constants/contact-request-message-state-accepted