diff --git a/src/lib/components/Widget/entity-inspector/component-param-row.svelte b/src/lib/components/Widget/entity-inspector/component-param-row.svelte index d69081a..2733c64 100644 --- a/src/lib/components/Widget/entity-inspector/component-param-row.svelte +++ b/src/lib/components/Widget/entity-inspector/component-param-row.svelte @@ -2,6 +2,7 @@ import type { ComponentParamHandle } from '$lib/client/ecs'; import { Input } from '$lib/components/ui/input'; import { TristateSwitch } from '$lib/components/ui/tristate-switch'; + import { Select, SelectContent, SelectItem, SelectTrigger } from '$lib/components/ui/select'; interface Props { handle: ComponentParamHandle; @@ -23,7 +24,32 @@
{$param.name}
{#if $param.type === 'string'} - + {#if $param.enum} + + {:else} + + {/if} {:else if $param.type === 'number'} {:else if $param.type === 'boolean'} diff --git a/src/lib/components/ui/select/select-content.svelte b/src/lib/components/ui/select/select-content.svelte index ba64c87..36814d1 100644 --- a/src/lib/components/ui/select/select-content.svelte +++ b/src/lib/components/ui/select/select-content.svelte @@ -33,9 +33,7 @@ > {@render children?.()}