|
|
@@ -223,12 +223,12 @@
|
|
|
(state/set-state! :mobile/show-action-bar? false)
|
|
|
(when (= (state/sub :editor/record-status) "RECORDING")
|
|
|
(state/set-state! :mobile/show-recording-bar? true))
|
|
|
+ (when-let [^js html (js/document.querySelector ":root")]
|
|
|
+ (.setProperty (.-style html) "--ls-native-kb-height" (str keyboard-height "px"))
|
|
|
+ (.add (.-classList html) "has-mobile-keyboard"))
|
|
|
(when (mobile-util/native-ios?)
|
|
|
(reset! util/keyboard-height keyboard-height)
|
|
|
(set! (.. main-node -style -marginBottom) (str keyboard-height "px"))
|
|
|
- (when-let [^js html (js/document.querySelector ":root")]
|
|
|
- (.setProperty (.-style html) "--ls-native-kb-height" (str keyboard-height "px"))
|
|
|
- (.add (.-classList html) "has-mobile-keyboard"))
|
|
|
(when-let [left-sidebar-node (gdom/getElement "left-sidebar")]
|
|
|
(set! (.. left-sidebar-node -style -bottom) (str keyboard-height "px")))
|
|
|
(when-let [right-sidebar-node (gdom/getElementByClass "sidebar-item-list")]
|
|
|
@@ -248,10 +248,10 @@
|
|
|
(state/set-state! :mobile/show-tabbar? true)
|
|
|
(when (= (state/sub :editor/record-status) "RECORDING")
|
|
|
(state/set-state! :mobile/show-recording-bar? false))
|
|
|
+ (when-let [^js html (js/document.querySelector ":root")]
|
|
|
+ (.removeProperty (.-style html) "--ls-native-kb-height")
|
|
|
+ (.remove (.-classList html) "has-mobile-keyboard"))
|
|
|
(when (mobile-util/native-ios?)
|
|
|
- (when-let [^js html (js/document.querySelector ":root")]
|
|
|
- (.removeProperty (.-style html) "--ls-native-kb-height")
|
|
|
- (.remove (.-classList html) "has-mobile-keyboard"))
|
|
|
(when-let [card-preview-el (js/document.querySelector ".cards-review")]
|
|
|
(set! (.. card-preview-el -style -marginBottom) "0px"))
|
|
|
(when-let [card-preview-el (js/document.querySelector ".encryption-password")]
|