@yogiswara/honcho-editor-ui 2.1.14 → 2.1.16
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.
|
@@ -23,6 +23,7 @@ const GalleryImageItem = (props) => {
|
|
|
23
23
|
const { photo, margin, adjustments, isSelected = false, data } = props;
|
|
24
24
|
const theme = useTheme();
|
|
25
25
|
const imageData = data;
|
|
26
|
+
console.debug("Image src", imageData.src);
|
|
26
27
|
const hasAdjustments = useMemo(() => {
|
|
27
28
|
if (!adjustments)
|
|
28
29
|
return false;
|
|
@@ -139,16 +140,20 @@ const GalleryImageItem = (props) => {
|
|
|
139
140
|
margin,
|
|
140
141
|
props.isSelected,
|
|
141
142
|
]);
|
|
142
|
-
return (_jsxs(Box, { id: "Box_image",
|
|
143
|
+
return (_jsxs(Box, { id: "Box_image", className: "image", children: [!props.isHiddenGallery &&
|
|
143
144
|
(hasAdjustments && isSelected ? (_jsx(Box, { color: "primary.dark1", onClick: handleImageSelectedIconClick, sx: {
|
|
144
145
|
position: "absolute",
|
|
145
|
-
width: "19px",
|
|
146
|
-
height: "19px",
|
|
147
|
-
zIndex: "2",
|
|
148
|
-
left: "5px",
|
|
149
|
-
top: "5px",
|
|
146
|
+
// width: "19px",
|
|
147
|
+
// height: "19px",
|
|
148
|
+
// zIndex: "2",
|
|
149
|
+
// left: "5px",
|
|
150
|
+
// top: "5px",
|
|
150
151
|
borderRadius: { xs: "50%", sm: 0 },
|
|
151
|
-
}, className: "checkbox", children: _jsx(CustomTickIcon, {}) })) : (_jsx(Box
|
|
152
|
+
}, className: "checkbox", children: _jsx(CustomTickIcon, {}) })) : (_jsx(Box
|
|
153
|
+
// color={"neutral.light2"}
|
|
154
|
+
, {
|
|
155
|
+
// color={"neutral.light2"}
|
|
156
|
+
onClick: handleImageSelectedIconClick, sx: {
|
|
152
157
|
position: "absolute",
|
|
153
158
|
width: "19px",
|
|
154
159
|
height: "19px",
|