@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
@@ -8,7 +8,8 @@ const Title = props => {
8
8
  return /*#__PURE__*/_jsx("div", {
9
9
  ...attributes,
10
10
  style: {
11
- fontWeight: "bold"
11
+ fontWeight: "bold",
12
+ fontSize: "20px"
12
13
  },
13
14
  children: children
14
15
  });
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "1.8.9",
3
+ "version": "1.9.0",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"