From 03dac6816e3cedbc9d7448457a89ebd6055e3f7f Mon Sep 17 00:00:00 2001 From: Nicolas Brichet Date: Fri, 25 Oct 2024 13:53:54 +0200 Subject: [PATCH] Send the document model to the iconRenderer, and avoid displaying cursor on Anonymous icons --- packages/collaboration/src/users-item.tsx | 2 +- packages/collaboration/style/users-item.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/collaboration/src/users-item.tsx b/packages/collaboration/src/users-item.tsx index 85238d03..23debf6b 100644 --- a/packages/collaboration/src/users-item.tsx +++ b/packages/collaboration/src/users-item.tsx @@ -127,7 +127,7 @@ export class UsersItem extends React.Component< this._model && user.userId !== this._model.sharedModel.awareness.clientID ) { - return IconRenderer({ user }); + return IconRenderer({ user, model: this._model }); } })} diff --git a/packages/collaboration/style/users-item.css b/packages/collaboration/style/users-item.css index db4930fb..6358e35e 100644 --- a/packages/collaboration/style/users-item.css +++ b/packages/collaboration/style/users-item.css @@ -16,4 +16,5 @@ height: 22px; width: 22px; box-sizing: border-box; + cursor: default; }