Add max height menu prop to FormSelectBase. Use it in move version dialog

This commit is contained in:
andrewwallacespeckle
2025-06-24 13:16:13 +02:00
parent df303088e0
commit 86249d7ce9
2 changed files with 12 additions and 1 deletions
@@ -10,6 +10,7 @@
:allow-unset="allowUnset"
:label-id="labelId"
:button-id="buttonId"
:menu-max-height-classes="`max-h-[30vh]`"
:help="help"
by="id"
>
@@ -134,7 +134,10 @@
/>
</div>
</label>
<div class="overflow-auto simple-scrollbar max-h-60 xl:max-h-80">
<div
class="overflow-auto simple-scrollbar"
:class="props.menuMaxHeightClasses || 'max-h-[50vh] xl:max-h-80'"
>
<div v-if="isAsyncSearchMode && isAsyncLoading" class="px-1">
<CommonLoadingBar :loading="true" />
</div>
@@ -490,6 +493,13 @@ const props = defineProps({
menuOpenDirection: {
type: String as PropType<'left' | 'right'>,
default: 'left'
},
/**
* Custom max height classes for the dropdown menu. If not provided, defaults to 'max-h-[50vh] xl:max-h-80'
*/
menuMaxHeightClasses: {
type: String,
default: undefined
}
})