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
8b71ce23
Commit
8b71ce23
authored
Jul 17, 2024
by
Timothy J. Baek
Browse files
refac: styling
parent
1e7a364c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/lib/components/chat/Messages/UserMessage.svelte
src/lib/components/chat/Messages/UserMessage.svelte
+6
-1
src/lib/components/common/FileItem.svelte
src/lib/components/common/FileItem.svelte
+2
-1
No files found.
src/lib/components/chat/Messages/UserMessage.svelte
View file @
8b71ce23
...
...
@@ -100,7 +100,12 @@
{#if file.type === 'image'}
<img src={file.url} alt="input" class=" max-h-96 rounded-lg" draggable="false" />
{:else}
<FileItem url={file.url} name={file.name} type={file.type} />
<FileItem
url={file.url}
name={file.name}
type={file.type}
colorClassName="bg-white dark:bg-gray-850 "
/>
{/if}
</div>
{/each}
...
...
src/lib/components/common/FileItem.svelte
View file @
8b71ce23
...
...
@@ -5,6 +5,7 @@
const dispatch = createEventDispatcher();
export let className = 'w-72';
export let colorClassName = 'bg-white dark:bg-gray-800';
export let url: string | null = null;
export let clickHandler: Function | null = null;
...
...
@@ -18,7 +19,7 @@
<div class="relative group">
<button
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"
class="h-14 {className} flex items-center space-x-3
{colorClassName}
rounded-xl border border-gray-100 dark:border-gray-800 text-left"
type="button"
on:click={async () => {
if (clickHandler === null) {
...
...
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