fix long-press message/chat preview is missing (#20349)
This commit is contained in:
parent
da449bcd17
commit
c0e10b7c6f
|
@ -14,8 +14,7 @@
|
||||||
:z-index 1
|
:z-index 1
|
||||||
:max-height max-height
|
:max-height max-height
|
||||||
:border-top-left-radius sheet-border-radius
|
:border-top-left-radius sheet-border-radius
|
||||||
:border-top-right-radius sheet-border-radius
|
:border-top-right-radius sheet-border-radius})
|
||||||
:overflow :hidden})
|
|
||||||
|
|
||||||
(def gradient-bg
|
(def gradient-bg
|
||||||
{:position :absolute
|
{:position :absolute
|
||||||
|
@ -25,14 +24,20 @@
|
||||||
|
|
||||||
(defn shell-bg
|
(defn shell-bg
|
||||||
[blur-background]
|
[blur-background]
|
||||||
{:position :absolute
|
{:background-color (if blur-background
|
||||||
:background-color (if blur-background
|
|
||||||
blur-background
|
blur-background
|
||||||
(if platform/ios? colors/white-opa-5 colors/neutral-100-opa-90))
|
(if platform/ios? colors/white-opa-5 colors/neutral-100-opa-90))
|
||||||
:left 0
|
:flex 1})
|
||||||
:right 0
|
|
||||||
:top 0
|
(def shell-bg-container
|
||||||
:bottom 0})
|
{:border-top-left-radius sheet-border-radius
|
||||||
|
:border-top-right-radius sheet-border-radius
|
||||||
|
:left 0
|
||||||
|
:right 0
|
||||||
|
:top 0
|
||||||
|
:bottom 0
|
||||||
|
:position :absolute
|
||||||
|
:overflow :hidden})
|
||||||
|
|
||||||
(defn sheet-content
|
(defn sheet-content
|
||||||
[{:keys [theme padding-bottom shell?]}]
|
[{:keys [theme padding-bottom shell?]}]
|
||||||
|
|
|
@ -133,12 +133,13 @@
|
||||||
{:transform [{:translateY translate-y}]}
|
{:transform [{:translateY translate-y}]}
|
||||||
(style/sheet {:max-height sheet-max-height}))}
|
(style/sheet {:max-height sheet-max-height}))}
|
||||||
(when shell?
|
(when shell?
|
||||||
[blur/ios-view
|
[rn/view {:style style/shell-bg-container}
|
||||||
{:style (style/shell-bg blur-background)
|
[blur/ios-view
|
||||||
:blur-radius (or blur-radius 20)
|
{:style (style/shell-bg blur-background)
|
||||||
:blur-amount 32
|
:blur-radius (or blur-radius 20)
|
||||||
:blur-type :transparent
|
:blur-amount 32
|
||||||
:overlay-color :transparent}])
|
:blur-type :transparent
|
||||||
|
:overlay-color :transparent}]])
|
||||||
(when selected-item
|
(when selected-item
|
||||||
[rn/view
|
[rn/view
|
||||||
{:on-layout handle-item-height
|
{:on-layout handle-item-height
|
||||||
|
|
Loading…
Reference in New Issue