File tree 2 files changed +19
-8
lines changed
src/status_im2/contexts/communities/overview
2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
1
(ns status-im2.contexts.communities.overview.style
2
2
(:require
3
- [quo.foundations.colors :as colors]))
3
+ [quo.foundations.colors :as colors]
4
+ [status-im2.contexts.shell.jump-to.constants :as jump-to.constants]))
4
5
5
6
(def screen-horizontal-padding 20 )
6
7
41
42
:right 0
42
43
:bottom 0 })
43
44
45
+ (def floating-shell-button
46
+ {:position :absolute
47
+ :bottom 21 })
48
+
49
+ (defn channel-list-component
50
+ []
51
+ {:margin-top 8
52
+ :margin-bottom (+ 21 jump-to.constants/floating-shell-button-height)
53
+ :flex 1 })
54
+
44
55
(defn token-gated-container
45
56
[]
46
57
{:border-radius 16
Original file line number Diff line number Diff line change 82
82
{:on-layout #(on-first-channel-height-changed
83
83
(+ 38 (int (Math/ceil (layout-y %))))
84
84
(into #{} (map (comp :name second) channels-list)))
85
- :style { :margin-top 8 :flex 1 } }
85
+ :style ( style/channel-list-component ) }
86
86
(for [[category-id {:keys [chats name collapsed?]}] channels-list]
87
87
[rn/view
88
88
{:key category-id
91
91
:on-layout #(on-category-layout name (int (layout-y %)))}
92
92
(when-not (= constants/empty-category-id category-id)
93
93
[quo/divider-label
94
- {:on-press #(collapse-category community-id category-id collapsed?)
95
- :chevron-icon (if collapsed? :i/chevron-right :i/chevron-down )
96
- :chevron :left }
94
+ {:on-press #(collapse-category community-id category-id collapsed?)
95
+ :chevron-icon (if collapsed? :i/chevron-right :i/chevron-down )
96
+ :container-style {:margin-top 8 }
97
+ :chevron :left }
97
98
name])
98
99
(when-not collapsed?
99
- [rn/view {:style {:padding-horizontal 8 :padding-bottom 8 }}
100
+ [rn/view {:style {:padding-horizontal 8 }}
100
101
(for [chat chats]
101
102
^{:key (:id chat)}
102
103
[channel-chat-item community-id community-color chat])])])])
375
376
{:jump-to {:on-press #(rf/dispatch [:shell/navigate-to-jump-to ])
376
377
:customization-color customization-color
377
378
:label (i18n/label :t/jump-to )}}
378
- {:position :absolute
379
- :bottom 34 }]]))
379
+ style/floating-shell-button]]))
You can’t perform that action at this time.
0 commit comments