fix: mobile view ui issues (#10284)

* hide zen mode when formFactor = phone

* tool bar fixes: icon and width

* view mode

* fix lint

* add exit-view-mode button

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
Ryan Di
2025-11-04 11:20:55 +00:00
committed by GitHub
co-authored by dwelle
parent d1f39823f1
commit c99e81678b
10 changed files with 154 additions and 66 deletions
+18 -1
View File
@@ -49,6 +49,8 @@ import { getFormValue } from "../actions/actionProperties";
import { useTextEditorFocus } from "../hooks/useTextEditorFocus";
import { actionToggleViewMode } from "../actions/actionToggleViewMode";
import { getToolbarTools } from "./shapes";
import "./Actions.scss";
@@ -79,6 +81,7 @@ import {
adjustmentsIcon,
DotsHorizontalIcon,
SelectionIcon,
pencilIcon,
} from "./icons";
import { Island } from "./Island";
@@ -1304,7 +1307,7 @@ export const UndoRedoActions = ({
</div>
);
export const ExitZenModeAction = ({
export const ExitZenModeButton = ({
actionManager,
showExitZenModeBtn,
}: {
@@ -1321,3 +1324,17 @@ export const ExitZenModeAction = ({
{t("buttons.exitZenMode")}
</button>
);
export const ExitViewModeButton = ({
actionManager,
}: {
actionManager: ActionManager;
}) => (
<button
type="button"
className="disable-view-mode"
onClick={() => actionManager.executeAction(actionToggleViewMode)}
>
{pencilIcon}
</button>
);