From a55e22f1f4892cf539bbc9f32054f59daf4f92d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9drix?= Date: Fri, 15 May 2026 20:24:28 +0200 Subject: [PATCH] =?UTF-8?q?feat=20:=20s=C3=A9lecteur=20de=20densit=C3=A9?= =?UTF-8?q?=20L/M/S=20sur=20la=20page=20liste=20(v1.6.7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Boutons [L][M][S] dans la barre de recherche hero : pleine largeur (défaut), 980 px centré, 660 px compact. Préférence localStorage. Anti-FOUC inline dans layout.php. Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 7 +++++ public/assets/css/style.css | 30 ++++++++++++++++++- public/version.txt | 2 +- templates/layout.php | 1 + templates/post_list.php | 60 ++++++++++++++++++++++++++++++------- 5 files changed, 88 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f0d92d..4f65f29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,13 @@ Format : [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/) — versionnag --- +## [1.6.7] - 2026-05-15 + +### Ajouté +- Sélecteur de densité L / M / S sur la page liste : pleine largeur (défaut), normal (980 px), compact (660 px) — préférence persistée dans `localStorage` + +--- + ## [1.6.6] - 2026-05-15 ### Modifié diff --git a/public/assets/css/style.css b/public/assets/css/style.css index cbcd4dc..9e49b76 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -1259,13 +1259,41 @@ footer.mt-5 { margin-top: 0 !important; } transition: background .2s; } .hero-search-btn:hover { background: var(--vl-accent-dark); } -.hero-search-stats { +.hero-search-footer { + display: flex; + align-items: center; + justify-content: center; + gap: .75rem; margin-top: .8rem; +} +.hero-search-stats { font-size: .83rem; color: var(--vl-muted); letter-spacing: .01em; + margin: 0; } +/* ─── Densité d'affichage L / M / S ──────── */ +body[data-density="m"] main { max-width: 980px; margin-left: auto; margin-right: auto; } +body[data-density="s"] main { max-width: 660px; margin-left: auto; margin-right: auto; } + +.density-toggle { display: flex; gap: 2px; } +.density-btn { + background: none; + border: 1px solid var(--vl-border); + border-radius: 4px; + color: var(--vl-muted); + cursor: pointer; + font-size: .68rem; + font-weight: 700; + letter-spacing: .06em; + line-height: 1; + padding: 3px 7px; + transition: background .15s, color .15s, border-color .15s; +} +.density-btn:hover { background: rgba(0,0,0,.05); color: var(--vl-text); border-color: var(--vl-muted); } +.density-btn.active { background: var(--vl-text); border-color: var(--vl-text); color: var(--vl-bg); } + /* ─── Page de recherche ───────────────────── */ .search-page { max-width: 780px; margin: 0 auto; } diff --git a/public/version.txt b/public/version.txt index ec70f75..400084b 100644 --- a/public/version.txt +++ b/public/version.txt @@ -1 +1 @@ -1.6.6 +1.6.7 diff --git a/templates/layout.php b/templates/layout.php index bc71e05..6987c5f 100644 --- a/templates/layout.php +++ b/templates/layout.php @@ -50,6 +50,7 @@ class=""> +