[#16550] fix: device type indicators in syncing screen (#17133)

This commit is contained in:
Mohsen Ghafouri 2023-08-30 12:20:21 +03:00 committed by GitHub
parent 5dc874a4cd
commit bd36699d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -52,4 +52,5 @@
:margin-right 12}) :margin-right 12})
(def tag-container (def tag-container
{:margin-top 8}) {:margin-top 8
:margin-left -1})

View File

@ -11,7 +11,7 @@
(def small-container-style (def small-container-style
(merge default-container-style (merge default-container-style
{:min-height 24 {:min-height 26
:padding-horizontal 8 :padding-horizontal 8
:padding-vertical 3})) :padding-vertical 3}))
@ -44,6 +44,7 @@
:background-color background-color)} :background-color background-color)}
[rn/view [rn/view
{:flex-direction :row {:flex-direction :row
:align-items :center
:flex 1} :flex 1}
[rn/view [rn/view
{:style {:justify-content :center {:style {:justify-content :center
@ -56,7 +57,7 @@
[text/text [text/text
{:size paragraph-size {:size paragraph-size
:weight :medium :weight :medium
:style {:padding-left 5 :style {:padding-left (if icon 5 0)
:color text-color}} label]]]))) :color text-color}} label]]])))
(defn- positive (defn- positive

View File

@ -17,7 +17,9 @@
{:container-style style/device-container {:container-style style/device-container
:title name :title name
:override-theme :dark :override-theme :dark
:left-icon (if (= device-type :mobile) :i/mobile :i/desktop)} :left-icon (cond (#{:mobile :ios :android} (keyword device-type))
:i/mobile
:else :i/desktop)}
(and show-button? unpaired?) (assoc :button-props (and show-button? unpaired?) (assoc :button-props
{:title (i18n/label :t/pair) {:title (i18n/label :t/pair)
:on-press #(js/alert "feature not added yet")}) :on-press #(js/alert "feature not added yet")})