Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
15d1a48d
Commit
15d1a48d
authored
Dec 10, 2023
by
Timothy J. Baek
Browse files
fix: edit input auto height
parent
8ee77136
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+0
-14
No files found.
src/lib/components/chat/Messages.svelte
View file @
15d1a48d
...
@@ -432,11 +432,6 @@
...
@@ -432,11 +432,6 @@
class=
" bg-transparent outline-none w-full resize-none"
class=
" bg-transparent outline-none w-full resize-none"
bind:value=
{history.messages[message.id].editedContent}
bind:value=
{history.messages[message.id].editedContent}
on:input=
{(e)
=
>
{
on:input=
{(e)
=
>
{
e.target.style.height = '';
e.target.style.height = `${e.target.scrollHeight}px`;
}}
on:focus={(e) => {
e.target.style.height = '';
e.target.style.height = `${e.target.scrollHeight}px`;
e.target.style.height = `${e.target.scrollHeight}px`;
}}
}}
/>
/>
...
@@ -634,17 +629,8 @@
...
@@ -634,17 +629,8 @@
class=
" bg-transparent outline-none w-full resize-none"
class=
" bg-transparent outline-none w-full resize-none"
bind:value=
{history.messages[message.id].editedContent}
bind:value=
{history.messages[message.id].editedContent}
on:input=
{(e)
=
>
{
on:input=
{(e)
=
>
{
e.target.style.height = '';
e.target.style.height = `${e.target.scrollHeight}px`;
e.target.style.height = `${e.target.scrollHeight}px`;
}}
}}
on:focus={(e) => {
e.target.style.height = '';
e.target.style.height = `${e.target.scrollHeight}px`;
}}
on:load={() => {
console.log('loadeddd');
}}
on:loadstart
/>
/>
<div
class=
" mt-2 mb-1 flex justify-center space-x-2 text-sm font-medium"
>
<div
class=
" mt-2 mb-1 flex justify-center space-x-2 text-sm font-medium"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment