mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 19:11:40 +02:00
✨ Fix default banner message position
This commit is contained in:
parent
3f627cb132
commit
42ba0d7b7a
2 changed files with 2 additions and 1 deletions
|
@ -109,6 +109,7 @@
|
||||||
([content controls actions tag]
|
([content controls actions tag]
|
||||||
(show {:content content
|
(show {:content content
|
||||||
:type :info
|
:type :info
|
||||||
|
:position :floating
|
||||||
:controls controls
|
:controls controls
|
||||||
:actions actions
|
:actions actions
|
||||||
:tag tag})))
|
:tag tag})))
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
on-close #(st/emit! dm/hide)]
|
on-close #(st/emit! dm/hide)]
|
||||||
(when message
|
(when message
|
||||||
[:& banner (assoc message
|
[:& banner (assoc message
|
||||||
:position (or (:position message) :floating)
|
:position (or (:position message) :fixed)
|
||||||
:controls (if (some? (:controls message))
|
:controls (if (some? (:controls message))
|
||||||
(:controls message)
|
(:controls message)
|
||||||
(if (some? (:timeout message))
|
(if (some? (:timeout message))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue