@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 hasVirtualSpacers = topSpacerHeight !== 0 || bottomSpacerHeight !== 0;
3913
- const childCount = items.length + (hasVirtualSpacers ? 2 : 0);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/settings-view",
3
- "version": "2.29.1",
3
+ "version": "2.29.2",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",