@flozy/editor 7.0.8 → 8.0.0
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.
@@ -53,9 +53,9 @@ const usePopupStyles = theme => ({
|
|
53
53
|
"& button": {
|
54
54
|
color: theme?.palette?.editor?.textColor
|
55
55
|
},
|
56
|
-
"@media only screen and (min-width: 899px)": {
|
57
|
-
|
58
|
-
},
|
56
|
+
// "@media only screen and (min-width: 899px)": {
|
57
|
+
// maxHeight: "400px",
|
58
|
+
// },
|
59
59
|
"& .orderedListIcon, .bulletedListTextIcon, .checkedListTextIcon, .accordianIconSvgTextFormat": {
|
60
60
|
width: "20px !important"
|
61
61
|
},
|
@@ -3,6 +3,7 @@ import { ReactEditor } from "slate-react";
|
|
3
3
|
import { getNearestItem } from "./calculateDropItem";
|
4
4
|
import { ROW_HEIGHT, getBorderWidth } from "./gridDropItem";
|
5
5
|
import { handleNegativeInteger } from "../../../utils/helper";
|
6
|
+
import { getDevice } from "../../../helper/theme";
|
6
7
|
const GUIDE_LINE_THRESHOLD = 5;
|
7
8
|
const GUIDE_LINE_OVERLAP_THRESHOLD = 5;
|
8
9
|
const handleMoveNode = (editor, path, newPath, {
|
@@ -252,10 +253,11 @@ export function getParentSectionPath(props, closestClass) {
|
|
252
253
|
}
|
253
254
|
}
|
254
255
|
export function getAbsolutePositionX(currentEle) {
|
256
|
+
const isMobile = getDevice(window.innerWidth) === "xs";
|
255
257
|
const {
|
256
258
|
left: currElementLeft
|
257
259
|
} = currentEle?.getBoundingClientRect() || {};
|
258
|
-
const parentBoxDom = currentEle?.closest(".fgi_type_box");
|
260
|
+
const parentBoxDom = currentEle?.closest(isMobile ? ".freegrid-section" : ".fgi_type_box");
|
259
261
|
const relativeElementX = parentBoxDom || document.querySelector(".rnd-guideline-lv");
|
260
262
|
const {
|
261
263
|
left
|