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
ed21f9f9
Commit
ed21f9f9
authored
Jul 17, 2024
by
Timothy J. Baek
Browse files
refac: styling
parent
bdadfc95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
src/lib/components/chat/MessageInput.svelte
src/lib/components/chat/MessageInput.svelte
+1
-1
src/lib/components/common/FileItem.svelte
src/lib/components/common/FileItem.svelte
+11
-6
No files found.
src/lib/components/chat/MessageInput.svelte
View file @
ed21f9f9
...
...
@@ -501,7 +501,7 @@
dir={$settings?.chatDirection ?? 'LTR'}
>
{#if files.length > 0}
<div class="mx-
2
mt-2 mb-1 flex flex-wrap gap-2">
<div class="mx-
1
mt-2
.5
mb-1 flex flex-wrap gap-2">
{#each files as file, fileIdx}
{#if file.type === 'image'}
<div class=" relative group">
...
...
src/lib/components/common/FileItem.svelte
View file @
ed21f9f9
...
...
@@ -7,8 +7,9 @@
export let className = 'w-72';
export let url: string | null = null;
export let
dismissible = false
;
export let
clickHandler: Function | null = null
;
export let dismissible = false;
export let status = 'processed';
export let name: string;
...
...
@@ -20,12 +21,16 @@
class="h-14 {className} flex items-center space-x-3 bg-white dark:bg-gray-800 rounded-xl border border-gray-100 dark:border-gray-800 text-left"
type="button"
on:click={async () => {
if (url) {
if (type === 'file') {
window.open(`${url}/content`, '_blank').focus();
} else {
window.open(`${url}`, '_blank').focus();
if (clickHandler === null) {
if (url) {
if (type === 'file') {
window.open(`${url}/content`, '_blank').focus();
} else {
window.open(`${url}`, '_blank').focus();
}
}
} else {
clickHandler();
}
}}
>
...
...
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