Add chat start dialog

This commit is contained in:
Jon Staab
2024-10-03 15:28:06 -07:00
parent d956e5ac4a
commit 749185190b
8 changed files with 148 additions and 74 deletions
+1 -1
View File
@@ -5,6 +5,6 @@
export let props = {}
</script>
<div class="modal-box bg-alt" transition:fly={{duration: 100}}>
<div class="modal-box bg-alt overflow-visible" transition:fly={{duration: 100}}>
<svelte:component this={component} {...props} />
</div>
+4 -4
View File
@@ -60,12 +60,12 @@
}
</script>
{#if items.length > 0 || (term && allowCreate)}
{#if term}
<div
data-theme={$theme}
bind:this={element}
transition:fly
class="mt-2 max-h-[350px] overflow-y-auto overflow-x-hidden shadow-xl {$$props.class}"
transition:fly|local={{duration: 200}}
class="mt-2 max-h-[350px] overflow-y-auto overflow-x-hidden shadow-xl {$$props.class} bg-alt"
style={$$props.style}>
{#if term && allowCreate}
<button
@@ -81,7 +81,7 @@
on:mousedown|preventDefault
on:click|preventDefault={() => select(value)}>
{#if index === i}
<div transition:slide={{axis: 'x'}} class="pr-2">
<div transition:slide|local={{axis: 'x'}} class="pr-2">
<Icon icon="alt-arrow-right" />
</div>
{/if}