0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 00:58:26 -05:00

add multiuser cursor

This commit is contained in:
Juan de la Cruz 2019-12-18 10:40:09 +01:00
parent 651a7d9a5b
commit 9a65ef358b
2 changed files with 30 additions and 0 deletions

View file

@ -300,4 +300,28 @@
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;
}
}

View file

@ -11,6 +11,7 @@
[goog.events :as events]
[potok.core :as ptk]
[rumext.alpha :as mf]
[uxbox.builtins.icons :as i]
[uxbox.main.constants :as c]
[uxbox.main.data.workspace :as dw]
[uxbox.main.geom :as geom]
@ -274,5 +275,10 @@
(when (contains? flags :ruler)
[:& ruler {:zoom zoom :ruler (:ruler local)}])
;; -- METER CURSOR MULTIUSUARIO
[:div.multiuser-cursor
[i/infocard]
[:span "USER_NAME"]]
[:& selrect {:data (:selrect local)}]]])))