diff --git a/web/i18n/en/a11y/dialog.json b/web/i18n/en/a11y/dialog.json index 451d74cf..cdade377 100644 --- a/web/i18n/en/a11y/dialog.json +++ b/web/i18n/en/a11y/dialog.json @@ -1,3 +1,4 @@ { - "picker.item.generic": "media thumbnail" + "picker.item.photo": "photo thumbnail", + "picker.item.video": "video thumbnail" } diff --git a/web/src/components/dialog/PickerDialog.svelte b/web/src/components/dialog/PickerDialog.svelte index 5c5c0d61..c1bb82a5 100644 --- a/web/src/components/dialog/PickerDialog.svelte +++ b/web/src/components/dialog/PickerDialog.svelte @@ -50,6 +50,14 @@ open = true; }); } + + // item id for alt text + let counter = 0; + + const itemNumber = () => { + counter++ + return counter + } {#if items} {#each items as item} - + {/each} {/if} diff --git a/web/src/components/dialog/PickerItem.svelte b/web/src/components/dialog/PickerItem.svelte index b56abcc9..e53dcfe2 100644 --- a/web/src/components/dialog/PickerItem.svelte +++ b/web/src/components/dialog/PickerItem.svelte @@ -6,9 +6,18 @@ import Skeleton from "$components/misc/Skeleton.svelte"; + import IconMovie from "@tabler/icons-svelte/IconMovie.svelte"; + import IconPhoto from "@tabler/icons-svelte/IconPhoto.svelte"; + export let item: DialogPickerItem; + export let number: number; let imageLoaded = false; + + let itemType = item.type; + if (!itemType) { + itemType = "photo" + }