@lvce-editor/settings-view 2.29.1 → 2.29.3
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.
|
@@ -3881,7 +3881,7 @@ const getSpacerDom = height => {
|
|
|
3881
3881
|
return [{
|
|
3882
3882
|
childCount: 0,
|
|
3883
3883
|
className: SettingsItemsSpacer,
|
|
3884
|
-
height: `${height}px
|
|
3884
|
+
height: `${height}px`,
|
|
3885
3885
|
type: Div
|
|
3886
3886
|
}];
|
|
3887
3887
|
};
|
|
@@ -3909,8 +3909,10 @@ const getSettingsItemsDom = (items, searchValue, preferences = {}, topSpacerHeig
|
|
|
3909
3909
|
if (items.length === 0) {
|
|
3910
3910
|
return [settingsItemsNode];
|
|
3911
3911
|
}
|
|
3912
|
-
const
|
|
3913
|
-
const
|
|
3912
|
+
const topSpacerCount = topSpacerHeight === 0 ? 0 : 1;
|
|
3913
|
+
const bottomSpacerCount = bottomSpacerHeight === 0 ? 0 : 1;
|
|
3914
|
+
const spacerCount = topSpacerCount + bottomSpacerCount;
|
|
3915
|
+
const childCount = items.length + spacerCount;
|
|
3914
3916
|
return [{
|
|
3915
3917
|
...settingsItemsNode,
|
|
3916
3918
|
childCount
|