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
ba3e1f10
Unverified
Commit
ba3e1f10
authored
Nov 23, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Nov 23, 2023
Browse files
Merge pull request #132 from ollama-webui/dev
feat: copy text button added to user message
parents
c94d28dc
3feffadf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+25
-3
No files found.
src/lib/components/chat/Messages.svelte
View file @
ba3e1f10
...
@@ -387,9 +387,9 @@
...
@@ -387,9 +387,9 @@
}}
}}
/>
/>
<div
class=
" flex justify-en
d
space-x-2 text-sm font-medium"
>
<div
class=
"
mt-2
flex justify-
c
en
ter
space-x-2 text-sm font-medium"
>
<button
<button
class=
"px-4 py-2
.5
bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded-lg"
class=
"px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded-lg"
on:click=
{()
=
>
{
on:click=
{()
=
>
{
confirmEditMessage(message.id);
confirmEditMessage(message.id);
}}
}}
...
@@ -398,7 +398,7 @@
...
@@ -398,7 +398,7 @@
</button>
</button>
<button
<button
class=
" px-4 py-2
.5
hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-100 transition outline outline-1 outline-gray-200 dark:outline-gray-600 rounded-lg"
class=
" px-4 py-2 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-100 transition outline outline-1 outline-gray-200 dark:outline-gray-600 rounded-lg"
on:click=
{()
=
>
{
on:click=
{()
=
>
{
cancelEditMessage(message.id);
cancelEditMessage(message.id);
}}
}}
...
@@ -533,6 +533,28 @@
...
@@ -533,6 +533,28 @@
/>
/>
</svg>
</svg>
</button>
</button>
<button
class=
"invisible group-hover:visible p-1 rounded dark:hover:bg-gray-800 transition"
on:click=
{()
=
>
{
copyToClipboard(message.content);
}}
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
fill=
"none"
viewBox=
"0 0 24 24"
stroke-width=
"1.5"
stroke=
"currentColor"
class=
"w-4 h-4"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
d=
"M15.666 3.888A2.25 2.25 0 0013.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 01-.75.75H9a.75.75 0 01-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 01-2.25 2.25H6.75A2.25 2.25 0 014.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 011.927-.184"
/>
</svg>
</button>
</div>
</div>
</div>
</div>
{/if}
{/if}
...
...
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