From 065df495ba99803ee2b9ab7d0b816c59ff13fdcc Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 16 Mar 2022 13:09:34 +0530 Subject: [PATCH] fix: Hide eraser in view mode in desktop (#4929) --- src/components/LayerUI.tsx | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 822693fd..4c887773 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -419,24 +419,27 @@ const LayerUI = ({ /> {!viewModeEnabled && ( -
- {actionManager.renderAction("undo", { size: "small" })} - {actionManager.renderAction("redo", { size: "small" })} -
+ <> +
+ {actionManager.renderAction("undo", { size: "small" })} + {actionManager.renderAction("redo", { size: "small" })} +
+ +
+ {actionManager.renderAction("eraser", { size: "small" })} +
+ )} -
- {actionManager.renderAction("eraser", { size: "small" })} -