mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-27 08:55:39 +00:00
add config for e2e tooltip events
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
9ad4939563
commit
13dfc544df
1
.env.e2e
1
.env.e2e
@ -19,3 +19,4 @@ PARTITIONED_TOPIC=0
|
|||||||
CONTRACT_NODES=1
|
CONTRACT_NODES=1
|
||||||
MOBILE_UI_FOR_DESKTOP=1
|
MOBILE_UI_FOR_DESKTOP=1
|
||||||
BLANK_PREVIEW=0
|
BLANK_PREVIEW=0
|
||||||
|
TOOLTIP_EVENTS=1
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
(ns status-im.ui.components.tooltip.styles
|
(ns status-im.ui.components.tooltip.styles
|
||||||
(:require [status-im.ui.components.colors :as colors]
|
(:require [status-im.ui.components.colors :as colors]
|
||||||
[status-im.utils.styles :as styles]))
|
[status-im.utils.styles :as styles]
|
||||||
|
[status-im.utils.config :as config]))
|
||||||
|
|
||||||
(def tooltip-container
|
(def tooltip-container
|
||||||
{:position :absolute
|
(merge
|
||||||
:align-items :center
|
{:position :absolute
|
||||||
:pointer-events :none
|
:align-items :center
|
||||||
:left 0
|
:left 0
|
||||||
:right 0
|
:right 0
|
||||||
:top 0})
|
:top 0}
|
||||||
|
;;we need this for e2e tests
|
||||||
|
(when-not config/tooltip-events?
|
||||||
|
{:pointer-events :none})))
|
||||||
|
|
||||||
(styles/def bottom-tooltip-container
|
(styles/def bottom-tooltip-container
|
||||||
{:position :absolute
|
{:position :absolute
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
(def local-notifications? (enabled? (get-config :LOCAL_NOTIFICATIONS "1")))
|
(def local-notifications? (enabled? (get-config :LOCAL_NOTIFICATIONS "1")))
|
||||||
(def blank-preview? (enabled? (get-config :BLANK_PREVIEW "1")))
|
(def blank-preview? (enabled? (get-config :BLANK_PREVIEW "1")))
|
||||||
(def group-chat-enabled? (enabled? (get-config :GROUP_CHATS_ENABLED "0")))
|
(def group-chat-enabled? (enabled? (get-config :GROUP_CHATS_ENABLED "0")))
|
||||||
|
(def tooltip-events? (enabled? (get-config :TOOLTIP_EVENTS "0")))
|
||||||
|
|
||||||
;; CONFIG VALUES
|
;; CONFIG VALUES
|
||||||
(def log-level
|
(def log-level
|
||||||
|
Loading…
x
Reference in New Issue
Block a user