mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 16:59:42 +00:00
refac: styling
This commit is contained in:
parent
8ad44cd690
commit
91e1b548a9
@ -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 ??
|
||||
[]}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user