@lvce-editor/settings-view 2.29.1 → 2.29.2
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.
|
@@ -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
|