no message

remove button container

fix for https://github.com/status-im/status-react/issues/657, and also Russian typo fixed
This commit is contained in:
Andrey Shovkoplyas 2017-01-30 19:32:25 +03:00 committed by Roman Volosovskyi
parent 0944df715f
commit 8110576228
5 changed files with 29 additions and 48 deletions

View File

@ -40,11 +40,9 @@
:style (st/toolbar chats-scrolled?)}])) :style (st/toolbar chats-scrolled?)}]))
(defn chats-action-button [] (defn chats-action-button []
[view {:style (st/action-buttons-container false 0)
:pointerEvents :box-none}
[action-button {:button-color color-blue [action-button {:button-color color-blue
:offset-x 16 :offset-x 16
:offset-y -2 :offset-y 22
:hide-shadow true :hide-shadow true
:spacing 13} :spacing 13}
[action-button-item [action-button-item
@ -58,7 +56,7 @@
:buttonColor :#1abc9c :buttonColor :#1abc9c
:onPress #(dispatch [:navigate-to :new-group])} :onPress #(dispatch [:navigate-to :new-group])}
[ion-icon {:name :md-person [ion-icon {:name :md-person
:style st/person-stalker-icon}]]]]) :style st/person-stalker-icon}]]])
(defn chat-shadow-item [] (defn chat-shadow-item []
[view {:height 3} [view {:height 3}

View File

@ -127,12 +127,3 @@
{:fontSize 20 {:fontSize 20
:height 22 :height 22
:color color-white}) :color color-white})
(defn action-buttons-container [animation? offset-y]
;; todo fix overlaying of parent view
{:position :absolute
:right 0
:height 230
:width 230
:bottom 24
:transform [{:translateY (if animation? offset-y 1)}]})

View File

@ -101,10 +101,9 @@
[line-view])])) [line-view])]))
(defn contacts-action-button [] (defn contacts-action-button []
[view st/buttons-container
[action-button {:button-color color-blue [action-button {:button-color color-blue
:offset-x 16 :offset-x 16
:offset-y -2 :offset-y 22
:hide-shadow true :hide-shadow true
:spacing 13} :spacing 13}
[action-button-item [action-button-item
@ -112,7 +111,7 @@
:buttonColor :#9b59b6 :buttonColor :#9b59b6
:onPress #(dispatch [:navigate-to :new-contact])} :onPress #(dispatch [:navigate-to :new-contact])}
[ion-icon {:name :md-create [ion-icon {:name :md-create
:style create-icon}]]]]) :style create-icon}]]])
(defn contact-list [_] (defn contact-list [_]
(let [peoples (subscribe [:get-added-people-with-limit contacts-limit]) (let [peoples (subscribe [:get-added-people-with-limit contacts-limit])

View File

@ -201,13 +201,6 @@
{:textAlign :center {:textAlign :center
:color color-gray}) :color color-gray})
(def buttons-container
{:position :absolute
:bottom 24
:right 0
:width 220
:height 170})
(def qr-input (def qr-input
{:margin-right 42}) {:margin-right 42})

View File

@ -122,7 +122,7 @@
:show-all "ПОКАЗАТЬ ВСЕ" :show-all "ПОКАЗАТЬ ВСЕ"
:contacts-group-dapps "ÐApps" :contacts-group-dapps "ÐApps"
:contacts-group-people "Люди" :contacts-group-people "Люди"
:contacts-group-new-chat "Начать новый час" :contacts-group-new-chat "Начать новый чат"
:no-contacts "Пока нет контактов" :no-contacts "Пока нет контактов"
:show-qr "Показать QR" :show-qr "Показать QR"
:enter-address "Ввести адрес" :enter-address "Ввести адрес"