Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Rm redundant if check (#1671)
Browse files
src/lib/components/chat/ChatMessage.svelte
CHANGED
|
@@ -428,17 +428,15 @@
|
|
| 428 |
: ''}"
|
| 429 |
>
|
| 430 |
<div class="mx-auto flex flex-row flex-nowrap gap-2">
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
</a>
|
| 441 |
-
{/if}
|
| 442 |
{#if !readOnly}
|
| 443 |
<button
|
| 444 |
class="cursor-pointer rounded-lg border border-gray-100 bg-gray-100 p-1 text-xs text-gray-400 group-hover:block hover:text-gray-500 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-gray-300 md:hidden lg:-right-2"
|
|
|
|
| 428 |
: ''}"
|
| 429 |
>
|
| 430 |
<div class="mx-auto flex flex-row flex-nowrap gap-2">
|
| 431 |
+
<a
|
| 432 |
+
class="rounded-lg border border-gray-100 bg-gray-100 p-1 text-xs text-gray-400 group-hover:block hover:text-gray-500 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-gray-300 max-sm:!hidden md:hidden"
|
| 433 |
+
title="Download prompt and parameters"
|
| 434 |
+
type="button"
|
| 435 |
+
target="_blank"
|
| 436 |
+
href={downloadLink}
|
| 437 |
+
>
|
| 438 |
+
<CarbonDownload />
|
| 439 |
+
</a>
|
|
|
|
|
|
|
| 440 |
{#if !readOnly}
|
| 441 |
<button
|
| 442 |
class="cursor-pointer rounded-lg border border-gray-100 bg-gray-100 p-1 text-xs text-gray-400 group-hover:block hover:text-gray-500 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-gray-300 md:hidden lg:-right-2"
|