mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fix: mobile view on editor (#13136)
This commit is contained in:
parent
58c5c727f4
commit
ba5c1eff05
2 changed files with 3 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ export const HotkeyProvider = ({ children, mode, currentLayout, canvasMaxWidth }
|
|||
style={{
|
||||
width: currentLayout == 'mobile' ? '450px' : '100%',
|
||||
maxWidth: canvasMaxWidth,
|
||||
// margin: '0 auto',
|
||||
margin: '0 auto',
|
||||
transform: 'translateZ(0)',
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -1570,7 +1570,8 @@ export const createComponentsSlice = (set, get) => ({
|
|||
const currentPageId = getCurrentPageId(moduleId);
|
||||
set(
|
||||
(state) => {
|
||||
state.modules[moduleId].pages[state.currentPageIndex].autoComputeLayout = false;
|
||||
const currentPageIndex = state.modules[moduleId].pages.findIndex((page) => page.id === currentPageId);
|
||||
state.modules[moduleId].pages[currentPageIndex].autoComputeLayout = false;
|
||||
},
|
||||
false,
|
||||
'turnOffAutoComputeLayout'
|
||||
|
|
|
|||
Loading…
Reference in a new issue