From 205349b8c2405c2bc77927af8d98e27de48c54ec Mon Sep 17 00:00:00 2001 From: hyrious Date: Mon, 6 Mar 2023 14:31:50 +0800 Subject: [PATCH] refactor(flat-pages): hide toolbar on avatar grid mode --- packages/flat-pages/src/components/Whiteboard.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/flat-pages/src/components/Whiteboard.tsx b/packages/flat-pages/src/components/Whiteboard.tsx index 75852c9b3c9..3926a029679 100644 --- a/packages/flat-pages/src/components/Whiteboard.tsx +++ b/packages/flat-pages/src/components/Whiteboard.tsx @@ -202,8 +202,9 @@ export const Whiteboard = observer(function Whiteboard({ ref={bindWhiteboard} className={classNames("whiteboard", { "can-operate": - classRoomStore.isCreator || - classRoomStore.users.currentUser?.wbOperate, + !classRoomStore.userWindowsGrid && + (classRoomStore.isCreator || + classRoomStore.users.currentUser?.wbOperate), })} />