mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 20:36:10 +02:00
add multiuser cursor
This commit is contained in:
parent
651a7d9a5b
commit
9a65ef358b
2 changed files with 30 additions and 0 deletions
|
@ -300,4 +300,28 @@
|
||||||
width: 25px;
|
width: 25px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.multiuser-cursor {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
z-index: 10000;
|
||||||
|
|
||||||
|
svg {
|
||||||
|
height: 15px;
|
||||||
|
fill: #f3dd14;
|
||||||
|
width: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
background-color: #f3dd14;
|
||||||
|
border-radius: $br-small;
|
||||||
|
color: $color-black;
|
||||||
|
font-size: $fs12;
|
||||||
|
margin-left: $small;
|
||||||
|
padding: $x-small;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -11,6 +11,7 @@
|
||||||
[goog.events :as events]
|
[goog.events :as events]
|
||||||
[potok.core :as ptk]
|
[potok.core :as ptk]
|
||||||
[rumext.alpha :as mf]
|
[rumext.alpha :as mf]
|
||||||
|
[uxbox.builtins.icons :as i]
|
||||||
[uxbox.main.constants :as c]
|
[uxbox.main.constants :as c]
|
||||||
[uxbox.main.data.workspace :as dw]
|
[uxbox.main.data.workspace :as dw]
|
||||||
[uxbox.main.geom :as geom]
|
[uxbox.main.geom :as geom]
|
||||||
|
@ -274,5 +275,10 @@
|
||||||
|
|
||||||
(when (contains? flags :ruler)
|
(when (contains? flags :ruler)
|
||||||
[:& ruler {:zoom zoom :ruler (:ruler local)}])
|
[:& ruler {:zoom zoom :ruler (:ruler local)}])
|
||||||
|
|
||||||
;; -- METER CURSOR MULTIUSUARIO
|
;; -- METER CURSOR MULTIUSUARIO
|
||||||
|
[:div.multiuser-cursor
|
||||||
|
[i/infocard]
|
||||||
|
[:span "USER_NAME"]]
|
||||||
|
|
||||||
[:& selrect {:data (:selrect local)}]]])))
|
[:& selrect {:data (:selrect local)}]]])))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue