fix: Hide eraser in view mode in desktop (#4929)
This commit is contained in:
parent
558227f744
commit
065df495ba
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user