@flozy/editor 5.1.2 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -299,6 +299,7 @@ const EditorButton = props => {
299
299
  children: /*#__PURE__*/_jsx(IconButton, {
300
300
  className: `moreBtnShow ${isMobile || openMoreOptions ? "activeBtnShow" : ""}`,
301
301
  sx: {
302
+ color: "#64748B",
302
303
  "& path": {
303
304
  fill: openMoreOptions ? appTheme.palette.text.blueText : ""
304
305
  }
@@ -115,7 +115,7 @@ const ColorButtons = props => {
115
115
  const [row1, ...restRows] = ColorChunks([]);
116
116
  const [anchorEl, setAnchorEl] = useState(null);
117
117
  const open = Boolean(anchorEl);
118
- const firstRow = defaultColors || row1;
118
+ const firstRow = defaultColors?.length ? defaultColors : row1;
119
119
  const handleMore = e => {
120
120
  setAnchorEl(e.currentTarget);
121
121
  };
@@ -271,12 +271,11 @@ const GridItem = props => {
271
271
  return /*#__PURE__*/_jsxs(Item, {
272
272
  item: true,
273
273
  component: "div",
274
- className: `grid-item element-root gi-top-wrpr dpath`,
274
+ className: `grid-item element-root gi-top-wrpr dpath ${lastChild ? "lastChild" : ""}`,
275
275
  ...attributes,
276
276
  style: {
277
277
  textAlign: element.alignment || "left",
278
- "--minWidth": lastChild ? "auto" : minWidthInPercent,
279
- flexGrow: lastChild ? 1 : "auto"
278
+ "--minWidth": lastChild ? "auto" : minWidthInPercent
280
279
  },
281
280
  sx: {
282
281
  ...getBRProps,
@@ -24,6 +24,9 @@ const GridStyles = (theme, appTheme) => ({
24
24
  }
25
25
  },
26
26
  "& .grid-item": {
27
+ "&.lastChild": {
28
+ flexGrow: 1
29
+ },
27
30
  minWidth: "var(--minWidth)",
28
31
  maxWidth: "var(--minWidth)",
29
32
  "& .element-selector": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"