Fix: chat header height

This commit is contained in:
John Ngei 2023-03-02 21:57:19 +03:00 committed by GitHub
parent 9333692830
commit 25d44b11f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 15 deletions

View File

@ -216,7 +216,6 @@
;; iPhone 11 Pro's height in Figma divided by Component height 56/1125
:align-items :center
:padding-horizontal 20
:margin-top 44
:height 56
:justify-content :space-between}
page-nav-background-uri (assoc :background-color page-nav-color)

View File

@ -77,21 +77,22 @@
:style {:line-height 21}}
name]])
(if top-nav
[rn/view {:margin-top (if platform/ios? 44 0)}
[rn/view {:style {:margin-top (if platform/ios? 44 0)}}
top-nav]
[quo/page-nav
(merge {:horizontal-description? true
:one-icon-align-left? true
:align-mid? false
:page-nav-color :transparent
:mid-section {:type :text-with-description
:main-text nil
:description-img nil}
:right-section-buttons page-nav}
(when navigate-back?
{:left-section {:icon :i/close
:icon-background-color (icon-color)
:on-press #(rf/dispatch [:navigate-back])}}))])
[rn/view {:style {:margin-top 44}}
[quo/page-nav
(merge {:horizontal-description? true
:one-icon-align-left? true
:align-mid? false
:page-nav-color :transparent
:mid-section {:type :text-with-description
:main-text nil
:description-img nil}
:right-section-buttons page-nav}
(when navigate-back?
{:left-section {:icon :i/close
:icon-background-color (icon-color)
:on-press #(rf/dispatch [:navigate-back])}}))]])
(when title-colum
title-colum)
sticky-header]]))