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,24 +419,27 @@ const LayerUI = ({
/> />
</Island> </Island>
{!viewModeEnabled && ( {!viewModeEnabled && (
<div <>
className={clsx("undo-redo-buttons zen-mode-transition", { <div
"layer-ui__wrapper__footer-left--transition-bottom": className={clsx("undo-redo-buttons zen-mode-transition", {
zenModeEnabled, "layer-ui__wrapper__footer-left--transition-bottom":
})} zenModeEnabled,
> })}
{actionManager.renderAction("undo", { size: "small" })} >
{actionManager.renderAction("redo", { size: "small" })} {actionManager.renderAction("undo", { size: "small" })}
</div> {actionManager.renderAction("redo", { size: "small" })}
</div>
<div
className={clsx("eraser-buttons zen-mode-transition", {
"layer-ui__wrapper__footer-left--transition-left":
zenModeEnabled,
})}
>
{actionManager.renderAction("eraser", { size: "small" })}
</div>
</>
)} )}
<div
className={clsx("eraser-buttons zen-mode-transition", {
"layer-ui__wrapper__footer-left--transition-left":
zenModeEnabled,
})}
>
{actionManager.renderAction("eraser", { size: "small" })}
</div>
</Section> </Section>
</Stack.Col> </Stack.Col>
</div> </div>