fix stickers alignment

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2019-11-06 12:38:07 +01:00
parent c6c554409d
commit 3da0a0dd4f
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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]]