@flozy/editor 9.3.6 → 9.3.8
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.
@@ -22,7 +22,7 @@ const ContinuousSlider = props => {
|
|
22
22
|
direction: "row",
|
23
23
|
sx: {
|
24
24
|
mb: 0,
|
25
|
-
ml:
|
25
|
+
ml: "8px"
|
26
26
|
},
|
27
27
|
alignItems: "center",
|
28
28
|
children: [/*#__PURE__*/_jsx(Slider, {
|
@@ -34,26 +34,28 @@ const ContinuousSlider = props => {
|
|
34
34
|
max: max,
|
35
35
|
sx: {
|
36
36
|
height: 6,
|
37
|
-
|
37
|
+
"& .MuiSlider-thumb": {
|
38
38
|
width: 16,
|
39
39
|
height: 16,
|
40
|
-
background:
|
40
|
+
background: "linear-gradient(180deg, #4D61FF 0%, #2C92FF 100%)",
|
41
|
+
top: "50%",
|
42
|
+
transform: "translate(-50%, -50%)"
|
41
43
|
},
|
42
|
-
|
43
|
-
position:
|
44
|
+
"& .MuiSlider-thumb::after": {
|
45
|
+
position: "absolute",
|
44
46
|
content: '""',
|
45
|
-
borderRadius:
|
47
|
+
borderRadius: "50%",
|
46
48
|
width: 18,
|
47
49
|
height: 18,
|
48
|
-
top:
|
49
|
-
left:
|
50
|
-
transform:
|
51
|
-
border:
|
52
|
-
boxShadow:
|
50
|
+
top: "50%",
|
51
|
+
left: "50%",
|
52
|
+
transform: "translate(-50%, -50%)",
|
53
|
+
border: "2px solid #fff",
|
54
|
+
boxShadow: "0px 4px 4px 0px #0000001A"
|
53
55
|
},
|
54
|
-
|
55
|
-
border:
|
56
|
-
background:
|
56
|
+
"& .MuiSlider-track": {
|
57
|
+
border: "1px solid #2563EB",
|
58
|
+
background: "#2563EB"
|
57
59
|
}
|
58
60
|
}
|
59
61
|
}), /*#__PURE__*/_jsxs(Typography, {
|
@@ -99,8 +99,17 @@ const PopupTool = props => {
|
|
99
99
|
return open && !openAI ? /*#__PURE__*/_jsx(ClickAwayListener, {
|
100
100
|
onClickAway: e => {
|
101
101
|
// close the mini toolbar, if user clicks outside the editor (in Flozy app.)
|
102
|
-
|
102
|
+
|
103
|
+
const wrapper = document.getElementById("slate-wrapper-scroll-container");
|
104
|
+
const isInsideWrapper = wrapper && wrapper.contains(e.target);
|
105
|
+
if (isInsideWrapper) {
|
106
|
+
return;
|
107
|
+
}
|
108
|
+
if (e.target === document.body) {
|
103
109
|
// e.target returns body, if the user clicks material ui select popup inside the tool bar, on that time, we don't need to close
|
110
|
+
return;
|
111
|
+
}
|
112
|
+
if (!isMobile) {
|
104
113
|
handleClose();
|
105
114
|
}
|
106
115
|
},
|