"...composable_kernel.git" did not exist on "c508a7c94f1b103f68c6e53dd80e71bd7d6eebc1"
Unverified Commit a4900038 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #173 from ollama-webui/dev

fix: copy code button issue
parents b8919e46 abbfd1dc
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
blocks.forEach((block) => { blocks.forEach((block) => {
// only add button if browser supports Clipboard API // only add button if browser supports Clipboard API
if (navigator.clipboard && block.childNodes.length < 2) { if (navigator.clipboard && block.childNodes.length < 2 && block.id !== 'user-message') {
let code = block.querySelector('code'); let code = block.querySelector('code');
code.style.borderTopRightRadius = 0; code.style.borderTopRightRadius = 0;
code.style.borderTopLeftRadius = 0; code.style.borderTopLeftRadius = 0;
...@@ -425,7 +425,7 @@ ...@@ -425,7 +425,7 @@
{/each} {/each}
</div> </div>
{/if} {/if}
<pre class="">{message.content}</pre> <pre id="user-message">{message.content}</pre>
<div class=" flex justify-start space-x-1"> <div class=" flex justify-start space-x-1">
{#if message.parentId !== null && message.parentId in history.messages && (history.messages[message.parentId]?.childrenIds.length ?? 0) > 1} {#if message.parentId !== null && message.parentId in history.messages && (history.messages[message.parentId]?.childrenIds.length ?? 0) > 1}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment