[16866] Action Drawer design review (#17033)

This commit is contained in:
Ibrahem Khalil 2023-08-23 15:58:23 +03:00 committed by GitHub
parent 34f7a48503
commit 4cef868eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -23,10 +23,11 @@
:margin-horizontal 12
:flex-direction :row})
(def left-icon
(defn left-icon
[sub-label?]
{:height 20
:margin-top :auto
:margin-bottom :auto
:margin-top (if sub-label? 10 :auto)
:margin-bottom (when-not sub-label? :auto)
:margin-right 12
:width 20})

View File

@ -51,7 +51,7 @@
[rn/view
{:accessibility-label :left-icon-for-action
:accessible true
:style style/left-icon}
:style (style/left-icon sub-label)}
[icon/icon icon
{:color (or icon-color (get-icon-color danger? theme))
:size 20}]]

View File

@ -189,7 +189,7 @@
(defn view-profile-entry
[chat-id]
(entry {:icon :i/friend
(entry {:icon :i/profile
:label (i18n/label :t/view-profile)
:on-press #(show-profile-action chat-id)
:danger? false