From 0ef7dc34e44d8211e4716369bfa2e8b9e86fa0e4 Mon Sep 17 00:00:00 2001 From: Omar Basem Date: Fri, 25 Aug 2023 21:33:40 +0400 Subject: [PATCH] fix: composer cursor hidden (#17099) * fix: iOS cursor in chat --- src/status_im2/contexts/chat/composer/constants.cljs | 4 ++-- src/status_im2/contexts/chat/composer/gradients/style.cljs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/status_im2/contexts/chat/composer/constants.cljs b/src/status_im2/contexts/chat/composer/constants.cljs index aa6d5c2e7b..1395dc1726 100644 --- a/src/status_im2/contexts/chat/composer/constants.cljs +++ b/src/status_im2/contexts/chat/composer/constants.cljs @@ -11,9 +11,9 @@ (def ^:const composer-default-height (+ bar-container-height input-height actions-container-height)) -(def ^:const line-height (:line-height typography/paragraph-1)) +(def ^:const line-height (if platform/ios? 18 (:line-height typography/paragraph-1))) -(def ^:const multiline-minimized-height (+ input-height (if platform/ios? 18 line-height))) +(def ^:const multiline-minimized-height (+ input-height line-height)) (def ^:const empty-opacity 0.7) diff --git a/src/status_im2/contexts/chat/composer/gradients/style.cljs b/src/status_im2/contexts/chat/composer/gradients/style.cljs index 5c1d543a3b..5babfac3aa 100644 --- a/src/status_im2/contexts/chat/composer/gradients/style.cljs +++ b/src/status_im2/contexts/chat/composer/gradients/style.cljs @@ -1,8 +1,8 @@ (ns status-im2.contexts.chat.composer.gradients.style (:require [quo2.foundations.colors :as colors] - [quo2.foundations.typography :as typography] - [react-native.reanimated :as reanimated])) + [react-native.reanimated :as reanimated] + [status-im2.contexts.chat.composer.constants :as constants])) (defn top-gradient-style [opacity z-index] @@ -24,7 +24,7 @@ :style (top-gradient-style opacity z-index)}) (def bottom-gradient-style - {:height (:line-height typography/paragraph-1) + {:height constants/line-height :position :absolute :bottom 0 :left 0