Skip to content

Commit

Permalink
enhance: polish collaboration button
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Dec 4, 2024
1 parent bbd9e4d commit 36a4443
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/frontend/components/header.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,25 @@
(let [rtc-graph-id (ldb/get-graph-rtc-uuid (db/get-db))
online-users @(::online-users state)]
(when rtc-graph-id
[:div.rtc-collaborators.flex.gap-2.text-sm.py-2.bg-gray-01
[:a.opacity-70.text-xs
{:class "pt-[3px] pr-1"
[:div.rtc-collaborators.flex.gap-1.text-sm.py-2.bg-gray-01.items-center
(shui/button
{:variant :ghost
:size :sm
:class "px-2 opacity-50 hover:opacity-100"
:on-click #(shui/dialog-open!
(fn []
[:div.p-2.-mb-8
[:h1.text-3xl.-mt-2.-ml-2 "Collaborators:"]
(settings/settings-collaboration)]))}
(if (not (seq online-users))
(shui/tabler-icon "user-plus")
(shui/tabler-icon "user-plus"))]
(shui/tabler-icon "user-plus"))
(when (seq online-users)
(for [{user-email :user/email
user-name :user/name
user-uuid :user/uuid} online-users
:let [color (shui-util/uuid-color user-uuid)]]
(when user-name
(shui/avatar
{:class "w-6 h-6"
{:class "w-5 h-5"
:style {:app-region "no-drag"}
:title user-email}
(shui/avatar-fallback
Expand Down

0 comments on commit 36a4443

Please sign in to comment.