fix: Hide eraser in view mode in desktop (#4929)

This commit is contained in:
Aakansha Doshi 2022-03-16 13:09:34 +05:30 committed by GitHub
parent 558227f744
commit 065df495ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,6 +419,7 @@ const LayerUI = ({
/> />
</Island> </Island>
{!viewModeEnabled && ( {!viewModeEnabled && (
<>
<div <div
className={clsx("undo-redo-buttons zen-mode-transition", { className={clsx("undo-redo-buttons zen-mode-transition", {
"layer-ui__wrapper__footer-left--transition-bottom": "layer-ui__wrapper__footer-left--transition-bottom":
@ -428,7 +429,7 @@ const LayerUI = ({
{actionManager.renderAction("undo", { size: "small" })} {actionManager.renderAction("undo", { size: "small" })}
{actionManager.renderAction("redo", { size: "small" })} {actionManager.renderAction("redo", { size: "small" })}
</div> </div>
)}
<div <div
className={clsx("eraser-buttons zen-mode-transition", { className={clsx("eraser-buttons zen-mode-transition", {
"layer-ui__wrapper__footer-left--transition-left": "layer-ui__wrapper__footer-left--transition-left":
@ -437,6 +438,8 @@ const LayerUI = ({
> >
{actionManager.renderAction("eraser", { size: "small" })} {actionManager.renderAction("eraser", { size: "small" })}
</div> </div>
</>
)}
</Section> </Section>
</Stack.Col> </Stack.Col>
</div> </div>