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 ;; iPhone 11 Pro's height in Figma divided by Component height 56/1125
:align-items :center :align-items :center
:padding-horizontal 20 :padding-horizontal 20
:margin-top 44
:height 56 :height 56
:justify-content :space-between} :justify-content :space-between}
page-nav-background-uri (assoc :background-color page-nav-color) page-nav-background-uri (assoc :background-color page-nav-color)

View File

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