From 476eea44df0643d0b4fb3da7fd2cfe4b9e56bb7c Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 12 Jun 2024 06:12:58 -0500 Subject: [PATCH] chore(web): remove thumbnail usage for places card (#10142) * chore(web): remove thumbnail usage for places * remove href attribute from Thumbnail * linting --- .../assets/thumbnail/thumbnail.svelte | 3 +-- web/src/routes/(user)/explore/+page.svelte | 18 ++++++++---------- web/src/routes/(user)/places/+page.svelte | 10 +++++++--- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/web/src/lib/components/assets/thumbnail/thumbnail.svelte b/web/src/lib/components/assets/thumbnail/thumbnail.svelte index 6c166fdf38..51095df231 100644 --- a/web/src/lib/components/assets/thumbnail/thumbnail.svelte +++ b/web/src/lib/components/assets/thumbnail/thumbnail.svelte @@ -40,7 +40,6 @@ export let readonly = false; export let showArchiveIcon = false; export let showStackedIcon = true; - export let href: string | undefined = undefined; export let onClick: ((asset: AssetResponseDto, event: Event) => void) | undefined = undefined; let className = ''; @@ -94,7 +93,7 @@ import ImageThumbnail from '$lib/components/assets/thumbnail/image-thumbnail.svelte'; - import Thumbnail from '$lib/components/assets/thumbnail/thumbnail.svelte'; import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte'; import { AppRoute } from '$lib/constants'; - import { getPeopleThumbnailUrl } from '$lib/utils'; - import type { SearchExploreResponseDto } from '@immich/sdk'; + import { getAssetThumbnailUrl, getPeopleThumbnailUrl } from '$lib/utils'; + import { AssetMediaSize, type SearchExploreResponseDto } from '@immich/sdk'; import type { PageData } from './$types'; import { getMetadataSearchQuery } from '$lib/utils/metadata-search'; import { t } from 'svelte-i18n'; @@ -86,15 +85,14 @@ diff --git a/web/src/routes/(user)/places/+page.svelte b/web/src/routes/(user)/places/+page.svelte index 9ebf9db6aa..28c8e95cb1 100644 --- a/web/src/routes/(user)/places/+page.svelte +++ b/web/src/routes/(user)/places/+page.svelte @@ -1,13 +1,13 @@