feat: reduce max tablet MQ size (#10669)
* feat: reduce max tablet MQ size * replace UIOptions.formFactor with getFormFactor
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user