HifiPlanet-Website/hifi
Maaxxs 142f9adb05 Make gallery card name label alignment configurable with a live preview
The brand/project name overlaid on gallery cards (GalleryOverview.jsx
and the identical pattern in GalleryBrandPage.jsx) was always left-
aligned with no way to change it - flagged against the brand-overview
page specifically, but the same hard-coded markup exists on the brand
detail page's project cards too, so both get the fix together as one
setting rather than two.

New app_settings.gallery_card_text_align (left/center/right, default
left - no visual change until an admin picks something else), same
site-wide-design-setting pattern as the existing package_card_theme/
package_card_layout. New "Bildergalerie-Kacheln" section in Website
settings renders an actual live preview card - using a real uploaded
gallery image and brand name when one exists, not just a placeholder -
that updates immediately when a button is clicked, rather than a
free-drag positioner: cheaper to build reliably and keeps the label
inside the three positions the design's bottom gradient overlay is
actually built to support.

New shared hifi-src/src/utils/galleryCardAlign.js provides the class
lookup both public pages and the admin preview use - a fixed map
rather than a template-string class name, same reasoning as the
Home.jsx section alignment work: Tailwind's build-time scanner needs
literal class names in the source or it purges them from the
production CSS.

Verified against the local database directly via PHP CLI: the new
column backfilled to 'left' on the existing app_settings row, and
SiteSettingsController::show() returns it correctly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 03:13:58 +02:00
..
api Make gallery card name label alignment configurable with a live preview 2026-09-09 03:13:58 +02:00
assets Make gallery card name label alignment configurable with a live preview 2026-09-09 03:13:58 +02:00
.htaccess Fix data export/import: PHP's default upload limits rejected real exports 2026-07-21 00:54:34 +02:00
favicon.png Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
index.html Make gallery card name label alignment configurable with a live preview 2026-09-09 03:13:58 +02:00
robots.txt Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00