[#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})
(def tag-container
{:margin-top 8})
{:margin-top 8
:margin-left -1})

View File

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

View File

@ -17,7 +17,9 @@
{:container-style style/device-container
:title name
: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
{:title (i18n/label :t/pair)
:on-press #(js/alert "feature not added yet")})