refac: styling

This commit is contained in:
Timothy J. Baek 2024-10-06 11:52:19 -07:00
parent 8ad44cd690
commit 91e1b548a9
2 changed files with 3 additions and 1 deletions

View File

@ -125,6 +125,7 @@
<div class=" w-full font-primary" in:fade={{ duration: 200, delay: 300 }}>
<Suggestions
className="grid grid-cols-2"
suggestionPrompts={models[selectedModelIdx]?.info?.meta?.suggestion_prompts ??
$config?.default_prompt_suggestions ??
[]}

View File

@ -6,6 +6,7 @@
const dispatch = createEventDispatcher();
export let suggestionPrompts = [];
export let className = '';
let prompts = [];
@ -21,7 +22,7 @@
</div>
{/if}
<div class=" h-40 max-h-full overflow-auto scrollbar-none">
<div class=" h-40 max-h-full overflow-auto scrollbar-none {className}">
{#each prompts as prompt, promptIdx}
<button
class="flex flex-col flex-1 shrink-0 w-full justify-between px-3 py-2 rounded-xl bg-transparent hover:bg-black/5 dark:hover:bg-white/5 transition group"