mirror of
https://github.com/status-im/status-react.git
synced 2025-03-01 11:00:51 +00:00
Discover pixel perfect: Main screen and empty main screen
Addresses all non-test must haves except "All content hidden behind right edge on smaller screen (check 5s)" - Main screen (empty): fix topbar margin - Main screen: Font size name (and dapp list item) - Main screen: Get rid of popular hashtag border - Main screen: All for DApps should be blue - Main screen: tap on number of popular hashtag -> error
This commit is contained in:
parent
8393f19596
commit
f1f43258fb
@ -33,7 +33,8 @@
|
|||||||
[discover-components/title
|
[discover-components/title
|
||||||
:t/dapps
|
:t/dapps
|
||||||
:t/all
|
:t/all
|
||||||
#(re-frame/dispatch [:navigate-to :discover-all-dapps])]
|
#(re-frame/dispatch [:navigate-to :discover-all-dapps])
|
||||||
|
true]
|
||||||
(if (seq dapps)
|
(if (seq dapps)
|
||||||
[list/flat-list {:data (vals dapps)
|
[list/flat-list {:data (vals dapps)
|
||||||
:render-fn render-dapp
|
:render-fn render-dapp
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
[status-im.components.icons.vector-icons :as vector-icons]
|
[status-im.components.icons.vector-icons :as vector-icons]
|
||||||
[status-im.i18n :as i18n]))
|
[status-im.i18n :as i18n]))
|
||||||
|
|
||||||
|
;; TODO(oskarth): Too many positional args, refactor to map
|
||||||
(defn title [label-kw action-kw action-fn active?]
|
(defn title [label-kw action-kw action-fn active?]
|
||||||
[react/view styles/title
|
[react/view styles/title
|
||||||
[react/text {:style styles/title-text
|
[react/text {:style styles/title-text
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
(def discover-list-item-name
|
(def discover-list-item-name
|
||||||
{:margin-left 7
|
{:margin-left 7
|
||||||
:color styles/color-black
|
:color styles/color-black
|
||||||
:font-size 12})
|
:font-size 14})
|
||||||
|
|
||||||
(def discover-list-item
|
(def discover-list-item
|
||||||
{:flex-direction :column
|
{:flex-direction :column
|
||||||
@ -127,7 +127,7 @@
|
|||||||
:padding-left 16
|
:padding-left 16
|
||||||
:ios {:border-radius 3
|
:ios {:border-radius 3
|
||||||
:border-width 1
|
:border-width 1
|
||||||
:border-color styles/color-light-gray5}
|
:border-color styles/color-white}
|
||||||
:android {:border-radius 4
|
:android {:border-radius 4
|
||||||
:margin-top 2
|
:margin-top 2
|
||||||
:margin-bottom 4
|
:margin-bottom 4
|
||||||
@ -204,7 +204,7 @@
|
|||||||
:padding 4
|
:padding 4
|
||||||
:margin 4
|
:margin 4
|
||||||
:color styles/text1-color
|
:color styles/text1-color
|
||||||
:font-size 12})
|
:font-size 14})
|
||||||
|
|
||||||
(defstyle dapps-list-item-avatar-container
|
(defstyle dapps-list-item-avatar-container
|
||||||
{:flex-direction :column
|
{:flex-direction :column
|
||||||
@ -274,7 +274,6 @@
|
|||||||
|
|
||||||
(def discover-container
|
(def discover-container
|
||||||
{:flex 1
|
{:flex 1
|
||||||
:margin-top 16
|
|
||||||
:background-color styles/color-light-gray})
|
:background-color styles/color-light-gray})
|
||||||
|
|
||||||
(def list-container
|
(def list-container
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
[react/view styles/tag-count-container
|
[react/view styles/tag-count-container
|
||||||
[react/text {:style styles/tag-count
|
[react/text {:style styles/tag-count
|
||||||
:font :default}
|
:font :default}
|
||||||
(:total discoveries)]]]
|
(str (:total discoveries))]]]
|
||||||
[components/discover-list-item {:message (first (:discoveries discoveries))
|
[components/discover-list-item {:message (first (:discoveries discoveries))
|
||||||
:show-separator? false
|
:show-separator? false
|
||||||
:current-account current-account}]]))
|
:current-account current-account}]]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user