[16866] Action Drawer design review (#17033)
This commit is contained in:
parent
34f7a48503
commit
4cef868eab
|
@ -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})
|
||||||
|
|
||||||
|
|
|
@ -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}]]
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue