Skip to content

A self-hosted media server and file management system

fix: download icon consistency

aminnausin5f06e33df1c5
diff --git a/resources/js/components/cards/data/LibraryCard.vue b/resources/js/components/cards/data/LibraryCard.vue
index 770a2920..68077ee8 100644
--- a/resources/js/components/cards/data/LibraryCard.vue
+++ b/resources/js/components/cards/data/LibraryCard.vue
@@ -10,10 +10,10 @@ import { BasePopover } from '@/components/cedar-ui/popover';
import { toast } from '@aminnausin/cedar-ui';
import LibraryCardMenu from '@/components/menus/LibraryCardMenu.vue';
+import TablerDownload from '@/components/icons/TablerDownload.vue';
import LazyImage from '@/components/lazy/LazyImage.vue';
import ProiconsMoreVertical from '~icons/proicons/more-vertical';
-import TablerDownload from '~icons/tabler/download';
import ProiconsLock from '~icons/proicons/lock';
const props = defineProps<{ data?: CategoryResource }>();
diff --git a/resources/js/components/cards/data/LibraryFolderCard.vue b/resources/js/components/cards/data/LibraryFolderCard.vue
index cfac8f71..08be943d 100644
--- a/resources/js/components/cards/data/LibraryFolderCard.vue
+++ b/resources/js/components/cards/data/LibraryFolderCard.vue
@@ -12,10 +12,10 @@ import { ButtonIcon } from '@/components/cedar-ui/button';
import { toast } from '@aminnausin/cedar-ui';
import LibraryFolderCardMenu from '@/components/menus/LibraryFolderCardMenu.vue';
+import TablerDownload from '@/components/icons/TablerDownload.vue';
import LazyImage from '@/components/lazy/LazyImage.vue';
import ProiconsMoreVertical from '~icons/proicons/more-vertical';
-import TablerDownload from '~icons/tabler/download';
import CircumShare1 from '~icons/circum/share-1';
const { stateLibraryId, stateLibraries } = storeToRefs(useDashboardStore());
diff --git a/resources/js/components/icons/TablerDownload.vue b/resources/js/components/icons/TablerDownload.vue
new file mode 100644
index 00000000..a41fe654
--- /dev/null
+++ b/resources/js/components/icons/TablerDownload.vue
@@ -0,0 +1,12 @@
+<template>
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <path
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="1"
+ d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5l5-5m-5-7v12"
+ />
+ </svg>
+</template>
diff --git a/resources/js/components/icons/TablerDownloadOff.vue b/resources/js/components/icons/TablerDownloadOff.vue
new file mode 100644
index 00000000..19ad30cb
--- /dev/null
+++ b/resources/js/components/icons/TablerDownloadOff.vue
@@ -0,0 +1,12 @@
+<template>
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+ <path
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="1"
+ d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 1.83-1.19M7 11l5 5l2-2m2-2l1-1m-5-7v4m0 4v4M3 3l18 18"
+ />
+ </svg>
+</template>
diff --git a/resources/js/components/menus/LibraryCardMenu.vue b/resources/js/components/menus/LibraryCardMenu.vue
index 13f01247..a5ad8c00 100644
--- a/resources/js/components/menus/LibraryCardMenu.vue
+++ b/resources/js/components/menus/LibraryCardMenu.vue
@@ -6,15 +6,15 @@ import { ButtonText } from '@/components/cedar-ui/button';
import { FormLabel } from '@/components/cedar-ui/form';
import { FLAGS } from '@/config/featureFlags';
+import TablerDownloadOff from '@/components/icons/TablerDownloadOff.vue';
+import TablerDownload from '@/components/icons/TablerDownload.vue';
+
import ProiconsArrowSync from '~icons/proicons/arrow-sync';
import ProiconsLockOpen from '~icons/proicons/lock-open';
import CircumFolderOn from '~icons/circum/folder-on';
import ProiconsDelete from '~icons/proicons/delete';
import ProiconsLock from '~icons/proicons/lock';
-import TablerDownloadOff from '~icons/tabler/download-off';
-import TablerDownload from '~icons/tabler/download';
-
const props = withDefaults(
defineProps<{
data?: CategoryResource;
diff --git a/resources/js/components/menus/LibraryFolderCardMenu.vue b/resources/js/components/menus/LibraryFolderCardMenu.vue
index 4293c8f9..953368b5 100644
--- a/resources/js/components/menus/LibraryFolderCardMenu.vue
+++ b/resources/js/components/menus/LibraryFolderCardMenu.vue
@@ -4,8 +4,9 @@ import type { FolderResource } from '@/contracts/media';
import { ButtonText } from '@/components/cedar-ui/button';
import { FLAGS } from '@/config/featureFlags';
-import TablerDownloadOff from '~icons/tabler/download-off';
-import TablerDownload from '~icons/tabler/download';
+import TablerDownloadOff from '@/components/icons/TablerDownloadOff.vue';
+import TablerDownload from '@/components/icons/TablerDownload.vue';
+
import ProiconsDelete from '~icons/proicons/delete';
import CircumEdit from '~icons/circum/edit';
diff --git a/resources/js/components/video/VideoInfoPanel.vue b/resources/js/components/video/VideoInfoPanel.vue
index 2abaee1e..3a76f99e 100755
--- a/resources/js/components/video/VideoInfoPanel.vue
+++ b/resources/js/components/video/VideoInfoPanel.vue
@@ -20,11 +20,11 @@ import { toast } from '@aminnausin/cedar-ui';
import EditFolderModal from '@/components/modals/EditFolderModal.vue';
import EditMediaModal from '@/components/modals/EditMediaModal.vue';
+import TablerDownload from '@/components/icons/TablerDownload.vue';
import useMetaData from '@/composables/useMetaData';
import ShareModal from '@/components/modals/ShareModal.vue';
import LazyImage from '@/components/lazy/LazyImage.vue';
-import ProiconsArrowDownload from '~icons/proicons/arrow-download';
import ProiconsMoreVertical from '~icons/proicons/more-vertical';
import LucideCaptions from '~icons/lucide/captions';
import CircumShare1 from '~icons/circum/share-1';
@@ -62,7 +62,7 @@ const popoverItems = computed(() => {
action: handleShare,
},
{
- icon: ProiconsArrowDownload,
+ icon: TablerDownload,
text: 'Download',
action: () => {
window.open(`/api/media/${stateVideo.value.id}/download`, '_blank');
@@ -294,11 +294,6 @@ onMounted(() => {
<ButtonText v-if="userData" aria-label="edit details" title="Edit Metadata" @click="handleEdit">
<p class="text-nowrap">Edit Metadata</p>
</ButtonText>
- <ButtonIcon aria-label="download" :title="`Download ${mediaTypeDescription}`" class="hidden">
- <template #icon>
- <ProiconsArrowDownload height="16" width="16" />
- </template>
- </ButtonIcon>
<BasePopover
class="hidden sm:block"