mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-28 01:16:50 +00:00
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
|
(ns status-im.ui.screens.chat.stickers.styles
|
||||||
(:require [status-im.utils.platform :as platform]))
|
(: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]
|
(defn pack-icon [background-color icon-size icon-horizontal-margin]
|
||||||
{:background-color background-color
|
{:background-color background-color
|
||||||
|
@ -49,10 +49,9 @@
|
|||||||
^{:key (str hash)}
|
^{:key (str hash)}
|
||||||
[react/touchable-highlight {:style {:height 75 :width 75 :margin 5}
|
[react/touchable-highlight {:style {:height 75 :width 75 :margin 5}
|
||||||
:on-press #(re-frame/dispatch [:chat/send-sticker sticker])}
|
:on-press #(re-frame/dispatch [:chat/send-sticker sticker])}
|
||||||
[react/view
|
|
||||||
[react/image {:style {:resize-mode :cover :width "100%" :height "100%"}
|
[react/image {:style {:resize-mode :cover :width "100%" :height "100%"}
|
||||||
:accessibility-label :sticker-icon
|
:accessibility-label :sticker-icon
|
||||||
:source {:uri (contenthash/url (str "0x" hash))}}]]])]]])
|
:source {:uri (contenthash/url (str "0x" hash))}}]])]]])
|
||||||
|
|
||||||
(defview recent-stickers-panel [window-width]
|
(defview recent-stickers-panel [window-width]
|
||||||
(letsubs [stickers [:stickers/recent]]
|
(letsubs [stickers [:stickers/recent]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user