Skip to content

Commit

Permalink
Style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alwx committed Sep 4, 2023
1 parent 8e7ba2f commit a1d68da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/status_im2/contexts/chat/messages/list/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,15 @@
(fn []
;; If keyboard is shown then adjust `scroll-y`
(when (and keyboard-shown (> keyboard-height 0))
(reanimated/set-shared-value scroll-y (+ (reanimated/get-shared-value scroll-y)
keyboard-height))
(reanimated/set-shared-value scroll-y
(+ (reanimated/get-shared-value scroll-y)
keyboard-height))
(reset! extra-keyboard-height keyboard-height))
;; If keyboard is not shown then subtract the keyboard height from `scroll-y` value
(when-not keyboard-shown
(reanimated/set-shared-value scroll-y (- (reanimated/get-shared-value scroll-y)
@extra-keyboard-height))))
(reanimated/set-shared-value scroll-y
(- (reanimated/get-shared-value scroll-y)
@extra-keyboard-height))))
[keyboard-shown keyboard-height])
;; Note - Don't pass `behavior :height` to keyboard avoiding view,
;; It breaks composer - https://github.com/status-im/status-mobile/issues/16595
Expand Down
3 changes: 2 additions & 1 deletion src/status_im2/contexts/chat/messages/navigation/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
{:opacity animation})
blur-view))

(defn navigation-view [loaded?]
(defn navigation-view
[loaded?]
{:z-index 1
:opacity (if loaded? 1 0)})

Expand Down

0 comments on commit a1d68da

Please sign in to comment.