HifiPlanet-Website/hifi-src/src/pages/admin
Maaxxs 49e2700399 Make brand/model tile size and package card size admin-configurable
Adds four numeric app_settings fields (vehicle_tile_width/height,
package_card_width/height, all in px, clamped server-side to a sane
range but otherwise a free number as requested) with matching inputs
in WebsiteSettings.jsx.

Brand/model tiles (VehicleSelect.jsx, BrandPage.jsx) move from a
responsive CSS-grid with an implicit per-column width to a flex-wrap
layout where every tile has the admin's chosen fixed width/height -
applies to both the photo-background and plain-text card variants, so
mixed grids stay visually consistent.

Package cards (ModelPage.jsx) keep their three existing layout modes
(grid/strip/coverflow) but the actual card dimensions - previously
hardcoded Tailwind width/min-height classes with a separate mobile/sm
breakpoint value - are now driven by the same two settings. Grid mode's
column count is no longer fixed at 2/3 columns; it's now
repeat(auto-fill, minmax(width, 1fr)), so the chosen width determines how
many cards fit per row. Coverflow's center-scroll padding, previously
hardcoded against the old fixed 230px card width, now derives from the
configured width too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 03:42:20 +02:00
..
settings Make brand/model tile size and package card size admin-configurable 2026-09-10 03:42:20 +02:00
AccountSettings.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
AdminUsers.jsx Protect the first-created admin account from being demoted or deleted 2026-08-29 22:25:31 +02:00
Brands.jsx Extend text styling to brand/model names and package text, add bold bullets 2026-09-10 03:15:53 +02:00
ContactRequests.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
Dashboard.jsx Add Google Analytics dashboard widget (GA4 Data API integration) 2026-07-07 01:57:32 +02:00
Faqs.jsx Move FAQ management into the admin panel and cover it plus the gallery in export/import 2026-07-07 19:25:06 +02:00
GalleryBrands.jsx Add image cropping to the shared upload field 2026-09-09 23:59:27 +02:00
GalleryPhotos.jsx Add photo gallery feature (brand -> project -> photos drill-down) 2026-07-06 17:04:46 +02:00
GalleryProjects.jsx Add image cropping to the shared upload field 2026-09-09 23:59:27 +02:00
HomeSections.jsx Let admins upload their own custom fonts 2026-09-10 03:28:57 +02:00
Login.jsx Address second round of client feedback 2026-07-18 12:51:10 +02:00
Models.jsx Extend text styling to brand/model names and package text, add bold bullets 2026-09-10 03:15:53 +02:00
PackageProducts.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
Packages.jsx Extend text styling to brand/model names and package text, add bold bullets 2026-09-10 03:15:53 +02:00
PackageUpgrades.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
Partners.jsx Add Partner management to replace the hardcoded homepage brand strip 2026-09-10 00:05:44 +02:00
PermissionGroups.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
Services.jsx Add image cropping to the shared upload field 2026-09-09 23:59:27 +02:00