@gem-sdk/pages 1.12.0 → 1.12.1
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.
|
@@ -32,7 +32,7 @@ const defaultMargin = {
|
|
|
32
32
|
tablet: '16px',
|
|
33
33
|
mobile: '16px'
|
|
34
34
|
};
|
|
35
|
-
const AddSectionImageToLayout = ()=>{
|
|
35
|
+
const AddSectionImageToLayout = ({ editorImageToLayout })=>{
|
|
36
36
|
const [link, setLink] = react.useState('');
|
|
37
37
|
const [isInput, setIsInput] = react.useState(false);
|
|
38
38
|
const [margin, setMargin] = react.useState(defaultMargin);
|
|
@@ -92,7 +92,7 @@ const AddSectionImageToLayout = ()=>{
|
|
|
92
92
|
}
|
|
93
93
|
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
94
94
|
id: "gps-add-section-image-to-layout-of-bottom",
|
|
95
|
-
className: `gps-base-font-family relative mx-[44px] mb-[24px] mt-[40px] justify-center rounded-[3px] border border-[#EEEEEE] py-[24px] ${totalSection ? 'flex' : 'hidden'}`,
|
|
95
|
+
className: `gps-base-font-family relative mx-[44px] mb-[24px] mt-[40px] justify-center rounded-[3px] border border-[#EEEEEE] py-[24px] ${totalSection && editorImageToLayout ? 'flex' : 'hidden'}`,
|
|
96
96
|
style: {
|
|
97
97
|
marginBottom: `${offset + 24}px`,
|
|
98
98
|
...core.makeStyleResponsive('ml', margin),
|
|
@@ -75,7 +75,9 @@ const BuilderPage = ({ components , seo , themeStyle , fontStyle , sectionData ,
|
|
|
75
75
|
/*#__PURE__*/ jsxRuntime.jsx(ImageToLayout.default, {
|
|
76
76
|
editorImageToLayout: editorImageToLayout || false
|
|
77
77
|
}),
|
|
78
|
-
/*#__PURE__*/ jsxRuntime.jsx(AddSectionImageToLayout.default, {
|
|
78
|
+
/*#__PURE__*/ jsxRuntime.jsx(AddSectionImageToLayout.default, {
|
|
79
|
+
editorImageToLayout: editorImageToLayout || false
|
|
80
|
+
}),
|
|
79
81
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
80
82
|
id: "visual-content"
|
|
81
83
|
}),
|
|
@@ -28,7 +28,7 @@ const defaultMargin = {
|
|
|
28
28
|
tablet: '16px',
|
|
29
29
|
mobile: '16px'
|
|
30
30
|
};
|
|
31
|
-
const AddSectionImageToLayout = ()=>{
|
|
31
|
+
const AddSectionImageToLayout = ({ editorImageToLayout })=>{
|
|
32
32
|
const [link, setLink] = useState('');
|
|
33
33
|
const [isInput, setIsInput] = useState(false);
|
|
34
34
|
const [margin, setMargin] = useState(defaultMargin);
|
|
@@ -88,7 +88,7 @@ const AddSectionImageToLayout = ()=>{
|
|
|
88
88
|
}
|
|
89
89
|
return /*#__PURE__*/ jsxs("div", {
|
|
90
90
|
id: "gps-add-section-image-to-layout-of-bottom",
|
|
91
|
-
className: `gps-base-font-family relative mx-[44px] mb-[24px] mt-[40px] justify-center rounded-[3px] border border-[#EEEEEE] py-[24px] ${totalSection ? 'flex' : 'hidden'}`,
|
|
91
|
+
className: `gps-base-font-family relative mx-[44px] mb-[24px] mt-[40px] justify-center rounded-[3px] border border-[#EEEEEE] py-[24px] ${totalSection && editorImageToLayout ? 'flex' : 'hidden'}`,
|
|
92
92
|
style: {
|
|
93
93
|
marginBottom: `${offset + 24}px`,
|
|
94
94
|
...makeStyleResponsive('ml', margin),
|
|
@@ -73,7 +73,9 @@ const BuilderPage = ({ components , seo , themeStyle , fontStyle , sectionData ,
|
|
|
73
73
|
/*#__PURE__*/ jsx(ImageToLayout, {
|
|
74
74
|
editorImageToLayout: editorImageToLayout || false
|
|
75
75
|
}),
|
|
76
|
-
/*#__PURE__*/ jsx(AddSectionImageToLayout, {
|
|
76
|
+
/*#__PURE__*/ jsx(AddSectionImageToLayout, {
|
|
77
|
+
editorImageToLayout: editorImageToLayout || false
|
|
78
|
+
}),
|
|
77
79
|
/*#__PURE__*/ jsx("div", {
|
|
78
80
|
id: "visual-content"
|
|
79
81
|
}),
|