mishig HF Staff commited on
Commit
4384b2b
·
unverified ·
1 Parent(s): c025511

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
- {#if downloadLink}
432
- <a
433
- 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"
434
- title="Download prompt and parameters"
435
- type="button"
436
- target="_blank"
437
- href={downloadLink}
438
- >
439
- <CarbonDownload />
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"