Extends the just-added horizontal drag to a second axis, per follow-up request. New app_settings.gallery_card_text_y (TINYINT UNSIGNED 0-100, default 100 = bottom, matching the original always-bottom position - no visual change until an admin drags it). galleryCardLabelStyle() now takes both x and y and combines `left/top` + a single `transform: translate(-X%, -Y%)` - same edge-to-edge interpolation trick as the horizontal axis, just on both axes at once. GalleryOverview.jsx/GalleryBrandPage.jsx drop the `bottom-0` class entirely now that vertical position is fully style-driven. WebsiteSettings.jsx's drag handlers compute both axes from one pointer position per move (one setForm call, not two) so a diagonal drag reads as one continuous motion. Added a vertical Oben/Mittig/Unten quick-jump row alongside the existing horizontal one. Note left as-is deliberately: the card's dark gradient overlay still only fades from opaque at the bottom to transparent at the top, so text dragged toward the top will have less contrast behind it - that's a real trade-off of allowing free vertical placement, and the live preview is exactly how an admin would notice and judge it rather than being blocked from trying. Verified against the local database directly via PHP CLI: defaults (0/100) and an arbitrary pair (30/15) both round-trip correctly through SiteSettingsController::show(), then reset back to defaults. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
11 lines
625 B
SQL
11 lines
625 B
SQL
USE hifi_shop;
|
|
|
|
-- Ergaenzt die horizontale Drag-Position (gallery_card_text_x, siehe
|
|
-- migration_gallery_card_drag.sql) um eine vertikale Achse - 0 = ganz oben,
|
|
-- 100 = ganz unten (Standard, entspricht der bisherigen "bottom-0"-Position, also
|
|
-- keine optische Aenderung, solange niemand daran zieht). 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_y TINYINT UNSIGNED NOT NULL DEFAULT 100 AFTER gallery_card_text_x;
|