diff --git a/TODO.md b/TODO.md index 7580a19..8bbf0ce 100644 --- a/TODO.md +++ b/TODO.md @@ -8,7 +8,6 @@ - Automatically generate different sizes of images - Handle relationship in RichText Content - On most pages (collectibles + pages), there is a gap in the breakpoints where no thumbnail is displayed. -- Add duration on audio/video preview cards - Add proper localization for formatFilesize, formatInches, formatMillimeters, formatPounds, and formatGrams ## Mid term diff --git a/src/pages/[locale]/collectibles/[slug]/gallery/[index].astro b/src/pages/[locale]/collectibles/[slug]/gallery/[index].astro index 22ae37d..bb24d95 100644 --- a/src/pages/[locale]/collectibles/[slug]/gallery/[index].astro +++ b/src/pages/[locale]/collectibles/[slug]/gallery/[index].astro @@ -3,6 +3,7 @@ import AppEmptyLayout from "components/AppLayout/AppEmptyLayout.astro"; import Lightbox from "components/Lightbox.astro"; import { getI18n } from "src/i18n/i18n"; import { payload } from "src/shared/payload/payload-sdk"; +import { formatInlineTitle, formatRichTextToString } from "src/utils/format"; import { fetchOr404 } from "src/utils/responses"; const slug = Astro.params.slug!; @@ -53,7 +54,13 @@ const tagsAndAttributes = [ {/* ------------------------------------------- HTML ------------------------------------------- */} - + payload.getCollectibleGallery(slug)); if (gallery instanceof Response) { return gallery; } -const { translations, parentPages, images } = gallery; +const { translations, parentPages, images, thumbnail } = gallery; const translation = getLocalizedMatch(translations); --- {/* ------------------------------------------- HTML ------------------------------------------- */} - + payload.getCollectibleScanPage(slug, index)); if (scanPage instanceof Response) { return scanPage; } -const { parentPages, previousIndex, nextIndex, image } = scanPage; +const { parentPages, previousIndex, nextIndex, image, translations } = scanPage; +const translation = getLocalizedMatch(translations); --- {/* ------------------------------------------- HTML ------------------------------------------- */} - + !value.includes("in {/* ------------------------------------------- HTML ------------------------------------------- */} - +