SPB Git

spb/auto-ka Public

Python 82.8% TypeScript 11.9% CSS 5.1%

Fiche véhicule : no-cache sur index.html + durcissement mobile (VIN, titre, équipements)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Simon-Pierre Boucher committed 2 h ago (Aug 12, 2026) parent fe69176

Showing 2 changed files with +9 and −1

modified autoka/web.py +5 −1
@@ -284,4 +284,8 @@ if FRONTEND_DIST.exists():
284 284 target = FRONTEND_DIST / full_path
285 285 if full_path and target.is_file():
286 286 return FileResponse(target)
287 return FileResponse(FRONTEND_DIST / "index.html")
287 + # index.html jamais mis en cache : les téléphones reçoivent toujours
288 + # la dernière version (les bundles /assets sont hachés, eux se cachent)
289 + return FileResponse(
290 + FRONTEND_DIST / "index.html",
291 + headers={"Cache-Control": "no-cache, must-revalidate"})
modified frontend/src/styles.css +4 −0
@@ -401,10 +401,14 @@ img { display: block; }
401 401 /* fiche véhicule : entête et prix empilés */
402 402 .vdetail { padding: 20px 0 40px; }
403 403 .vd-head { flex-direction: column; gap: 8px; }
404 + .vd-head h1 { font-size: 23px; }
404 405 .vd-price { margin-left: 0; text-align: left; }
405 406 .vd-price .p { font-size: 28px; }
406 407 .gallery .thumbs img { width: 68px; height: 50px; }
407 408 .panel { padding: 14px 14px; }
409 + .spec-table td:last-child { word-break: break-all; } /* VIN longs */
410 + .desc { font-size: 14px; }
411 + .feat-list { max-height: 260px; }
408 412
409 413 /* stats : bouton PDF pleine largeur, tuiles 2 colonnes */
410 414 .stats-head { flex-direction: column; align-items: stretch; }
411 415