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
This commit is contained in:
Sean Hagstrom 2024-04-08 13:32:17 +01:00 committed by GitHub
parent 5fe28a2c9b
commit 0e29149363
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,7 @@
{:size :paragraph-2
:weight :medium
:style (style/text theme)
:number-of-lines 2
:accessibility-label :notification-content}
text])

View File

@ -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