@gem-sdk/components 2.0.0-dev.734 → 2.0.0-dev.735
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.
|
@@ -108,10 +108,14 @@ const getRowStyle = (rowProps)=>{
|
|
|
108
108
|
'object-fit': 'cover',
|
|
109
109
|
top: '50%'
|
|
110
110
|
});
|
|
111
|
+
const getSectionPagePaddingValue = (config)=>{
|
|
112
|
+
if (config === undefined) return undefined;
|
|
113
|
+
return config ? 'var(--g-ct-p, 15px)' : 'none';
|
|
114
|
+
};
|
|
111
115
|
const sectionPagePaddingStyle = {
|
|
112
|
-
desktop: enablePagePadding?.desktop
|
|
113
|
-
tablet: enablePagePadding?.tablet
|
|
114
|
-
mobile: enablePagePadding?.mobile
|
|
116
|
+
desktop: getSectionPagePaddingValue(enablePagePadding?.desktop),
|
|
117
|
+
tablet: getSectionPagePaddingValue(enablePagePadding?.tablet),
|
|
118
|
+
mobile: getSectionPagePaddingValue(enablePagePadding?.mobile)
|
|
115
119
|
};
|
|
116
120
|
const sectionStyle = system.createStyle({
|
|
117
121
|
...wrapStyle,
|
|
@@ -106,10 +106,14 @@ const getRowStyle = (rowProps)=>{
|
|
|
106
106
|
'object-fit': 'cover',
|
|
107
107
|
top: '50%'
|
|
108
108
|
});
|
|
109
|
+
const getSectionPagePaddingValue = (config)=>{
|
|
110
|
+
if (config === undefined) return undefined;
|
|
111
|
+
return config ? 'var(--g-ct-p, 15px)' : 'none';
|
|
112
|
+
};
|
|
109
113
|
const sectionPagePaddingStyle = {
|
|
110
|
-
desktop: enablePagePadding?.desktop
|
|
111
|
-
tablet: enablePagePadding?.tablet
|
|
112
|
-
mobile: enablePagePadding?.mobile
|
|
114
|
+
desktop: getSectionPagePaddingValue(enablePagePadding?.desktop),
|
|
115
|
+
tablet: getSectionPagePaddingValue(enablePagePadding?.tablet),
|
|
116
|
+
mobile: getSectionPagePaddingValue(enablePagePadding?.mobile)
|
|
113
117
|
};
|
|
114
118
|
const sectionStyle = createStyle({
|
|
115
119
|
...wrapStyle,
|