feat: reduce max tablet MQ size (#10669)

* feat: reduce max tablet MQ size

* replace UIOptions.formFactor with getFormFactor
This commit is contained in:
David Luzar
2026-01-18 21:55:14 +01:00
committed by GitHub
parent 0443511954
commit 9d760336d1
4 changed files with 11 additions and 10 deletions
+2 -5
View File
@@ -2780,7 +2780,7 @@ class App extends React.Component<AppProps, AppState> {
private getFormFactor = (editorWidth: number, editorHeight: number) => {
return (
this.props.UIOptions.formFactor ??
this.props.UIOptions.getFormFactor?.(editorWidth, editorHeight) ??
getFormFactor(editorWidth, editorHeight)
);
};
@@ -2804,10 +2804,7 @@ class App extends React.Component<AppProps, AppState> {
? this.props.UIOptions.dockedSidebarBreakpoint
: MQ_RIGHT_SIDEBAR_MIN_WIDTH;
const nextEditorInterface = updateObject(this.editorInterface, {
desktopUIMode:
this.props.UIOptions.desktopUIMode ??
storedDesktopUIMode ??
this.editorInterface.desktopUIMode,
desktopUIMode: storedDesktopUIMode ?? this.editorInterface.desktopUIMode,
formFactor: this.getFormFactor(editorWidth, editorHeight),
userAgent: userAgentDescriptor,
canFitSidebar: editorWidth > sidebarBreakpoint,