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; 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] [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)}]]])))