HifiPlanet-Website/hifi/api/src/Support
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
..
Base32.php Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
GoogleAnalyticsReporting.php Add Google Analytics dashboard widget (GA4 Data API integration) 2026-07-07 01:57:32 +02:00
Http.php Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
Mailer.php Add rich-text formatting and font choice for email templates 2026-09-09 01:49:13 +02:00
Permissions.php Add one-click git-based auto-update (manual trigger only) 2026-09-09 02:16:41 +02:00
RecoveryCodes.php Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
Schema.php Make gallery card name label alignment configurable with a live preview 2026-09-09 03:13:58 +02:00
Slug.php Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
Totp.php Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
Uploads.php Add remove-image button and actually delete orphaned upload files 2026-09-09 01:32:40 +02:00