fix stickers alignment
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
c6c554409d
commit
3da0a0dd4f
|
@ -1,7 +1,7 @@
|
|||
(ns status-im.ui.screens.chat.stickers.styles
|
||||
(:require [status-im.utils.platform :as platform]))
|
||||
|
||||
(def stickers-panel {:flex 1 :margin 5 :flex-direction :row :justify-content :flex-start :flex-wrap :wrap})
|
||||
(def stickers-panel {:flex 1 :margin 5 :flex-direction :row :justify-content :space-between :flex-wrap :wrap})
|
||||
|
||||
(defn pack-icon [background-color icon-size icon-horizontal-margin]
|
||||
{:background-color background-color
|
||||
|
|
|
@ -49,10 +49,9 @@
|
|||
^{:key (str hash)}
|
||||
[react/touchable-highlight {:style {:height 75 :width 75 :margin 5}
|
||||
:on-press #(re-frame/dispatch [:chat/send-sticker sticker])}
|
||||
[react/view
|
||||
[react/image {:style {:resize-mode :cover :width "100%" :height "100%"}
|
||||
:accessibility-label :sticker-icon
|
||||
:source {:uri (contenthash/url (str "0x" hash))}}]]])]]])
|
||||
[react/image {:style {:resize-mode :cover :width "100%" :height "100%"}
|
||||
:accessibility-label :sticker-icon
|
||||
:source {:uri (contenthash/url (str "0x" hash))}}]])]]])
|
||||
|
||||
(defview recent-stickers-panel [window-width]
|
||||
(letsubs [stickers [:stickers/recent]]
|
||||
|
|
Loading…
Reference in New Issue