forked from open-webui/open-webui
refac: styling
This commit is contained in:
parent
2674656b49
commit
18e5c2e4cb
5 changed files with 110 additions and 68 deletions
|
@ -22,6 +22,8 @@
|
|||
export let continueGeneration: Function;
|
||||
export let regenerateResponse: Function;
|
||||
|
||||
export let prompt;
|
||||
export let suggestionPrompts;
|
||||
export let processing = '';
|
||||
export let bottomPadding = false;
|
||||
export let autoScroll;
|
||||
|
@ -276,7 +278,22 @@
|
|||
</script>
|
||||
|
||||
{#if messages.length == 0}
|
||||
<Placeholder models={selectedModels} modelfiles={selectedModelfiles} />
|
||||
<Placeholder
|
||||
models={selectedModels}
|
||||
modelfiles={selectedModelfiles}
|
||||
{suggestionPrompts}
|
||||
submitPrompt={async (p) => {
|
||||
const chatTextAreaElement = document.getElementById('chat-textarea');
|
||||
if (chatTextAreaElement) {
|
||||
prompt = p;
|
||||
|
||||
await tick();
|
||||
|
||||
chatTextAreaElement.style.height = '';
|
||||
chatTextAreaElement.style.height = Math.min(chatTextAreaElement.scrollHeight, 200) + 'px';
|
||||
}
|
||||
}}
|
||||
/>
|
||||
{:else}
|
||||
<div class=" pb-10">
|
||||
{#key chatId}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue