Skip to content

Commit

Permalink
Revert "Revert "squash and sign""
Browse files Browse the repository at this point in the history
This reverts commit 975f0f9.
  • Loading branch information
cammellos committed May 4, 2022
1 parent 484dc60 commit 2fc76ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/status_im/ui/screens/notifications_center/styles.cljs
Expand Up @@ -67,10 +67,11 @@
:top (if has-header? 37 12)
:left 16})

(def title-text
(defn title-text [title-text-width]
{:margin-left 72
:margin-top 12
:margin-right 50})
:margin-right 50
:width title-text-width})

(def notification-message-container
{:margin-left 72
Expand Down
Expand Up @@ -33,6 +33,7 @@
{:keys [community-id]} (<sub [:chat-by-id chat-id])
{:keys [name]} @(re-frame/subscribe [:communities/community community-id])
contact (when message @(re-frame/subscribe [:contacts/contact-by-identity (message :from)]))
title-text-width (* @(re-frame/subscribe [:dimensions/window-width]) 0.62)
sender (when message (first @(re-frame/subscribe [:contacts/contact-two-names-by-identity (message :from)])))]
[react/view
[react/touchable-opacity (merge {:style (styles/notification-container read)} opts)
Expand Down Expand Up @@ -61,7 +62,7 @@
:accessibility-label :chat-name-or-sender-text
:ellipsize-mode :tail
:number-of-lines 1
:style styles/title-text}
:style (styles/title-text title-text-width)}
(if (or
(= type constants/activity-center-notification-type-mention)
(= type constants/activity-center-notification-type-contact-request)
Expand Down

0 comments on commit 2fc76ef

Please sign in to comment.