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
1e7a364c
Commit
1e7a364c
authored
Jul 17, 2024
by
Timothy J. Baek
Browse files
fix
parent
29d8f8d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/lib/components/chat/Controls/Controls.svelte
src/lib/components/chat/Controls/Controls.svelte
+5
-3
No files found.
src/lib/components/chat/Controls/Controls.svelte
View file @
1e7a364c
...
...
@@ -33,8 +33,8 @@
<div>
<div class="mb-1.5 font-medium">{$i18n.t('Files')}</div>
<div>
{#each chatFiles as file}
<div
class="flex flex-col gap-1"
>
{#each chatFiles as file
, fileIdx
}
<FileItem
className="w-full"
url={`${file?.url}`}
...
...
@@ -43,7 +43,9 @@
dismissible={true}
on:dismiss={() => {
// Remove the file from the chatFiles array
chatFiles = chatFiles.filter((f) => f.id !== file.id);
chatFiles.splice(fileIdx, 1);
chatFiles = chatFiles;
}}
/>
{/each}
...
...
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