easy-email-pro-theme 1.12.3 → 1.12.5
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.
- package/lib/index.js +5 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -19208,6 +19208,7 @@ const ResponsiveTabs = ({
|
|
|
19208
19208
|
return get(attributes, key2) !== get(mobileAttributes, key2);
|
|
19209
19209
|
});
|
|
19210
19210
|
}, [attributes, mobileAttributes]);
|
|
19211
|
+
const isDesktop = activeTab === ActiveTabKeys.DESKTOP;
|
|
19211
19212
|
return /* @__PURE__ */ React__default.createElement(
|
|
19212
19213
|
ResponsiveTabsContext.Provider,
|
|
19213
19214
|
{
|
|
@@ -19227,7 +19228,7 @@ const ResponsiveTabs = ({
|
|
|
19227
19228
|
title: /* @__PURE__ */ React__default.createElement(Space, null, /* @__PURE__ */ React__default.createElement(IconFont, { iconName: "icon-desktop" }), /* @__PURE__ */ React__default.createElement("span", null, isEnabledResponsive ? t("Desktop") : t("Configuration"))),
|
|
19228
19229
|
key: ActiveTabKeys.DESKTOP
|
|
19229
19230
|
},
|
|
19230
|
-
desktop,
|
|
19231
|
+
isDesktop && desktop,
|
|
19231
19232
|
children
|
|
19232
19233
|
),
|
|
19233
19234
|
isEnabledResponsive && /* @__PURE__ */ React__default.createElement(
|
|
@@ -19247,7 +19248,7 @@ const ResponsiveTabs = ({
|
|
|
19247
19248
|
))),
|
|
19248
19249
|
key: ActiveTabKeys.MOBILE
|
|
19249
19250
|
},
|
|
19250
|
-
/* @__PURE__ */ React__default.createElement(React__default.Fragment, null, mobile, children)
|
|
19251
|
+
/* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !isDesktop && mobile, children)
|
|
19251
19252
|
),
|
|
19252
19253
|
(isEnabledResponsive || isEnabledLogic) && /* @__PURE__ */ React__default.createElement(
|
|
19253
19254
|
Tabs.TabPane,
|
|
@@ -20130,6 +20131,8 @@ function AttributesContainer$4({
|
|
|
20130
20131
|
const spacingName = mode === ActiveTabKeys.DESKTOP ? "attributes.spacing" : "mobileAttributes.spacing";
|
|
20131
20132
|
const spacing = getFieldValue(nodePath, spacingName);
|
|
20132
20133
|
useEffect(() => {
|
|
20134
|
+
if (!spacing)
|
|
20135
|
+
return;
|
|
20133
20136
|
HistoryEditor.withoutSaving(editor, () => {
|
|
20134
20137
|
Editor.withoutNormalizing(editor, () => {
|
|
20135
20138
|
selectedNode == null ? void 0 : selectedNode.children.forEach((child, index2) => {
|