From 998fba89046783548b5443ab8eb1884ba57d3d8f Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Sat, 25 Apr 2026 10:44:30 +0200 Subject: [PATCH] feat(gallery): grid title, subtle download icon, full i18n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Render block.title as

above the grid when set; the carousel variant is unchanged. - Download CTA in the modal shrunk to a 9×9 icon-only button with text-white/80 hover-tint instead of the dark green link colour the app's `main a` rule was forcing in. Adds `no-underline` so the global underline doesn't sneak back in. - All previously hardcoded German strings (Download, Schließen, modal aria, open aria) now go through translations.ts → CMS translation_bundle. Cms_content app.json5 ships the matching keys. Open follow-up: per-image title/alt/caption is empty on the existing windwiderstand mediathek gallery → editor needs to fill those if hover labels are wanted. --- .../components/blocks/ImageGalleryBlock.svelte | 17 ++++++++++------- src/lib/translations.ts | 4 ++++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/lib/components/blocks/ImageGalleryBlock.svelte b/src/lib/components/blocks/ImageGalleryBlock.svelte index 09566fb..3b35c89 100644 --- a/src/lib/components/blocks/ImageGalleryBlock.svelte +++ b/src/lib/components/blocks/ImageGalleryBlock.svelte @@ -167,6 +167,9 @@ {#if withUrl.length === 0}

{t(T.image_gallery_empty)}

{:else if block.variant === "grid"} + {#if block.title} +

{block.title}

+ {/if}