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>
10 lines
530 B
SQL
10 lines
530 B
SQL
USE hifi_shop;
|
|
|
|
-- Horizontale Ausrichtung des Marken-/Projekt-Namens auf den Bildergalerie-Kacheln
|
|
-- (Uebersicht + Marken-Detailseite) - vorher immer linksbuendig hart codiert.
|
|
-- Additiv, nichts wird geloescht.
|
|
-- Hinweis: Auf der Live-Seite reicht stattdessen ein Klick auf "Datenbankstruktur aktualisieren"
|
|
-- unter Admin-Panel -> Einstellungen -> Datenbank.
|
|
|
|
ALTER TABLE app_settings
|
|
ADD COLUMN IF NOT EXISTS gallery_card_text_align ENUM('left','center','right') NOT NULL DEFAULT 'left' AFTER package_wheel_hint_interval;
|