[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 :margin-horizontal 12
:flex-direction :row}) :flex-direction :row})
(def left-icon (defn left-icon
[sub-label?]
{:height 20 {:height 20
:margin-top :auto :margin-top (if sub-label? 10 :auto)
:margin-bottom :auto :margin-bottom (when-not sub-label? :auto)
:margin-right 12 :margin-right 12
:width 20}) :width 20})

View File

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

View File

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