@flozy/editor 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ import { useSelected, useSlateStatic, ReactEditor } from "slate-react";
|
|
4
4
|
import { gridItem } from "../../utils/gridItem";
|
5
5
|
import GridPopup from "./GridPopup";
|
6
6
|
import { IconButton, Tooltip } from "@mui/material";
|
7
|
-
import CompressIcon from "@mui/icons-material/Compress";
|
7
|
+
// import CompressIcon from "@mui/icons-material/Compress";
|
8
8
|
import { insertGrid } from "../../utils/grid";
|
9
9
|
import useDragAndDrop from "../../common/useDragAndDrop";
|
10
10
|
import useResize from "../../utils/customHooks/useResize";
|
@@ -257,7 +257,7 @@ const Grid = props => {
|
|
257
257
|
backgroundRepeat: "no-repeat",
|
258
258
|
backgroundSize: "cover"
|
259
259
|
}
|
260
|
-
}),
|
260
|
+
}), !readOnly && /*#__PURE__*/_jsxs("div", {
|
261
261
|
className: `element-selector ${selected ? "selected" : ""}`,
|
262
262
|
contentEditable: false,
|
263
263
|
children: [/*#__PURE__*/_jsx("div", {
|
@@ -294,24 +294,6 @@ const Grid = props => {
|
|
294
294
|
height: resizing ? `${size?.height}px` : elHeight ? `${elHeight}px` : "fit-content"
|
295
295
|
},
|
296
296
|
children: children
|
297
|
-
}), selected && !readOnly && /*#__PURE__*/_jsx(IconButton, {
|
298
|
-
onPointerDown: onMouseDown,
|
299
|
-
style: {
|
300
|
-
opacity: 1,
|
301
|
-
background: "#FFF",
|
302
|
-
position: "absolute",
|
303
|
-
left: 0,
|
304
|
-
right: 0,
|
305
|
-
bottom: "-28px",
|
306
|
-
margin: "auto",
|
307
|
-
color: "#FFF",
|
308
|
-
backgroundColor: "#2684ff",
|
309
|
-
width: "42px",
|
310
|
-
height: "42px",
|
311
|
-
zIndex: 1000
|
312
|
-
},
|
313
|
-
className: "",
|
314
|
-
children: /*#__PURE__*/_jsx(CompressIcon, {})
|
315
297
|
})]
|
316
298
|
});
|
317
299
|
};
|