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
7467b7fd
Commit
7467b7fd
authored
Feb 01, 2024
by
Timothy J. Baek
Browse files
feat: web doc url link
parent
07919a87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/lib/components/chat/MessageInput.svelte
src/lib/components/chat/MessageInput.svelte
+1
-0
src/lib/components/chat/Messages/UserMessage.svelte
src/lib/components/chat/Messages/UserMessage.svelte
+9
-3
No files found.
src/lib/components/chat/MessageInput.svelte
View file @
7467b7fd
...
@@ -145,6 +145,7 @@
...
@@ -145,6 +145,7 @@
name: url,
name: url,
collection_name: '',
collection_name: '',
upload_status: false,
upload_status: false,
url: url,
error: ''
error: ''
};
};
...
...
src/lib/components/chat/Messages/UserMessage.svelte
View file @
7467b7fd
...
@@ -82,8 +82,14 @@
...
@@ -82,8 +82,14 @@
{#if file.type === 'image'}
{#if file.type === 'image'}
<img src={file.url} alt="input" class=" max-h-96 rounded-lg" draggable="false" />
<img src={file.url} alt="input" class=" max-h-96 rounded-lg" draggable="false" />
{:else if file.type === 'doc'}
{:else if file.type === 'doc'}
<div
<button
class="h-16 w-[15rem] flex items-center space-x-3 px-2.5 dark:bg-gray-600 rounded-xl border border-gray-200 dark:border-none"
class="h-16 w-[15rem] flex items-center space-x-3 px-2.5 dark:bg-gray-600 rounded-xl border border-gray-200 dark:border-none text-left"
type="button"
on:click={() => {
if (file?.url) {
window.open(file?.url, '_blank').focus();
}
}}
>
>
<div class="p-2.5 bg-red-400 text-white rounded-lg">
<div class="p-2.5 bg-red-400 text-white rounded-lg">
<svg
<svg
...
@@ -110,7 +116,7 @@
...
@@ -110,7 +116,7 @@
<div class=" text-gray-500 text-sm">Document</div>
<div class=" text-gray-500 text-sm">Document</div>
</div>
</div>
</
div
>
</
button
>
{/if}
{/if}
</div>
</div>
{/each}
{/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