From 9a65ef358b26ee6e0ce75a4c0547aa8247c325e5 Mon Sep 17 00:00:00 2001 From: Juan de la Cruz Date: Wed, 18 Dec 2019 10:40:09 +0100 Subject: [PATCH] add multiuser cursor --- .../styles/main/partials/workspace-bar.scss | 24 +++++++++++++++++++ .../src/uxbox/main/ui/workspace/viewport.cljs | 6 +++++ 2 files changed, 30 insertions(+) diff --git a/frontend/resources/styles/main/partials/workspace-bar.scss b/frontend/resources/styles/main/partials/workspace-bar.scss index 6705bb1cf..7295c8a03 100644 --- a/frontend/resources/styles/main/partials/workspace-bar.scss +++ b/frontend/resources/styles/main/partials/workspace-bar.scss @@ -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; + } } \ No newline at end of file diff --git a/frontend/src/uxbox/main/ui/workspace/viewport.cljs b/frontend/src/uxbox/main/ui/workspace/viewport.cljs index 91d16b1ac..6e1f96634 100644 --- a/frontend/src/uxbox/main/ui/workspace/viewport.cljs +++ b/frontend/src/uxbox/main/ui/workspace/viewport.cljs @@ -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)}]]])))