Fix spacer issue

This commit is contained in:
andrewwallacespeckle
2025-09-05 15:05:27 +01:00
parent 198624dfe2
commit 0dfd09fd86
2 changed files with 2 additions and 6 deletions
@@ -36,8 +36,6 @@
:property="item.property"
@select-property="$emit('selectProperty', $event)"
/>
<div v-else-if="item.type === 'spacer'" class="h-9" />
</div>
</div>
</div>
@@ -148,13 +146,11 @@ const listItems = computed((): PropertySelectionListItem[] => {
}))
items.push(...allPropertyItems)
items.push({ type: 'spacer' })
return items
})
const itemHeight = computed(() => PROPERTY_SELECTION_ITEM_HEIGHT)
const maxHeight = computed(() => PROPERTY_SELECTION_MAX_HEIGHT)
const maxHeight = computed(() => PROPERTY_SELECTION_MAX_HEIGHT - 28)
const { list, containerProps, wrapperProps } = useVirtualList(listItems, {
itemHeight: PROPERTY_SELECTION_ITEM_HEIGHT,
@@ -101,7 +101,7 @@ export type ConditionOption = {
export type PropertyOption = PropertySelectOption // Alias for backward compatibility
export type PropertySelectionListItem = {
type: 'header' | 'property' | 'spacer'
type: 'header' | 'property'
title?: string
property?: PropertyOption
}