@flozy/editor 1.8.9 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -118,7 +118,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
118
118
|
pageBgImage,
|
119
119
|
pageColor,
|
120
120
|
color: pageTextColor,
|
121
|
-
pageWidth
|
121
|
+
pageWidth,
|
122
|
+
maxWidth: pageMaxWidth
|
122
123
|
} = pageSt?.pageProps || {
|
123
124
|
bannerSpacing: {
|
124
125
|
left: 0,
|
@@ -355,13 +356,16 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
355
356
|
className: `${hasTopBanner() ? "has-topbanner" : ""}`,
|
356
357
|
sx: classes.slateWrapper,
|
357
358
|
id: "slate-wrapper-scroll-container",
|
359
|
+
style: {
|
360
|
+
background: pageColor || "#FFF"
|
361
|
+
},
|
358
362
|
children: /*#__PURE__*/_jsxs(Box, {
|
359
363
|
component: "div",
|
360
364
|
className: "max-content",
|
361
365
|
children: [renderTopBanner(), /*#__PURE__*/_jsx("div", {
|
362
366
|
className: "scroll-area",
|
363
367
|
style: {
|
364
|
-
background: pageColor || "#FFF",
|
368
|
+
// background: pageColor || "#FFF",
|
365
369
|
color: pageTextColor || "#000000"
|
366
370
|
},
|
367
371
|
children: /*#__PURE__*/_jsxs(Box, {
|
@@ -378,7 +382,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
378
382
|
alignSelf: "center",
|
379
383
|
transformOrigin: "left top",
|
380
384
|
transition: "all 0.3s",
|
381
|
-
minHeight: "87%"
|
385
|
+
minHeight: "87%",
|
386
|
+
maxWidth: pageMaxWidth ? `${parseInt(pageMaxWidth)}px !important` : "auto"
|
382
387
|
},
|
383
388
|
children: [!readOnly ? /*#__PURE__*/_jsx(PopupTool, {
|
384
389
|
onDrawerOpen: onDrawerOpen
|
@@ -26,5 +26,14 @@ const pageSettingsStyle = [{
|
|
26
26
|
key: "bannerSpacing",
|
27
27
|
type: "bannerSpacing"
|
28
28
|
}]
|
29
|
+
}, {
|
30
|
+
tab: "Max Width",
|
31
|
+
value: "maxWidth",
|
32
|
+
fields: [{
|
33
|
+
label: "Max Width",
|
34
|
+
key: "maxWidth",
|
35
|
+
type: "text",
|
36
|
+
placeholder: "Maximum width of page in px"
|
37
|
+
}]
|
29
38
|
}];
|
30
39
|
export default pageSettingsStyle;
|