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