No description
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> |
||
|---|---|---|
| hifi | ||
| hifi-src | ||
| .gitignore | ||
| DEPLOY.md | ||