|
1 | 1 | <script lang="ts"> |
2 | 2 | import { onMount, onDestroy } from 'svelte'; |
3 | 3 | import { AlertTriangle, Film, ExternalLink } from 'lucide-svelte'; |
| 4 | + import Button from '$ui/button/Button.svelte'; |
4 | 5 | import { browser } from '$app/environment'; |
5 | 6 | import { goto, invalidateAll } from '$app/navigation'; |
6 | 7 | import ExpandableTable from '$ui/table/ExpandableTable.svelte'; |
|
668 | 669 |
|
669 | 670 | <svelte:fragment slot="actions" let:row> |
670 | 671 | {#if !loading && !refreshing && row.tmdbId} |
671 | | - <a |
| 672 | + <Button |
| 673 | + icon={ExternalLink} |
| 674 | + size="xs" |
| 675 | + variant="secondary" |
672 | 676 | href="{baseUrl}/movie/{row.tmdbId}" |
673 | 677 | target="_blank" |
674 | 678 | rel="noopener noreferrer" |
675 | | - class="inline-flex h-7 w-7 items-center justify-center rounded border border-neutral-300 bg-white text-neutral-700 transition-colors hover:bg-neutral-50 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-300 dark:hover:bg-neutral-700" |
676 | | - title="Open in Radarr" |
677 | | - on:click|stopPropagation |
678 | | - > |
679 | | - <ExternalLink size={14} /> |
680 | | - </a> |
| 679 | + tooltip="Open in Radarr" |
| 680 | + on:click={(e) => e.stopPropagation()} |
| 681 | + /> |
681 | 682 | {/if} |
682 | 683 | </svelte:fragment> |
683 | 684 |
|
|
733 | 734 |
|
734 | 735 | <svelte:fragment slot="actions" let:row> |
735 | 736 | {#if !loading && !refreshing && row.tvdbId} |
736 | | - <a |
| 737 | + <Button |
| 738 | + icon={ExternalLink} |
| 739 | + size="xs" |
| 740 | + variant="secondary" |
737 | 741 | href="{baseUrl}/series/{row.title.toLowerCase().replace(/[^a-z0-9]+/g, '-')}" |
738 | 742 | target="_blank" |
739 | 743 | rel="noopener noreferrer" |
740 | | - class="inline-flex h-7 w-7 items-center justify-center rounded border border-neutral-300 bg-white text-neutral-700 transition-colors hover:bg-neutral-50 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-300 dark:hover:bg-neutral-700" |
741 | | - title="Open in Sonarr" |
742 | | - on:click|stopPropagation |
743 | | - > |
744 | | - <ExternalLink size={14} /> |
745 | | - </a> |
| 744 | + tooltip="Open in Sonarr" |
| 745 | + on:click={(e) => e.stopPropagation()} |
| 746 | + /> |
746 | 747 | {/if} |
747 | 748 | </svelte:fragment> |
748 | 749 |
|
|
0 commit comments