From bb01c2dd901bc43d35d06a895cc033b1f4caec16 Mon Sep 17 00:00:00 2001 From: bach Date: Sat, 5 Sep 2026 21:55:50 +0200 Subject: [PATCH] Turn Compte/Type filters into hover dropdowns, add a clear button to each filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A native so ctrl/shift+click can select - several values, rendered as a short scrollable list (size="4") rather - than the single-line native default -- needs an explicit width, since - a multi-row select sizes to its widest option's natural width - otherwise, unlike a single-line select's fixed line box. */ -#figli-home-app .figli-toolbar select[multiple] { +/* Each filter control + its "✕ effacer" button, side by side. */ +#figli-home-app .figli-filter-row { + display: flex; + align-items: center; + gap: 0.25rem; +} +#figli-home-app .figli-filter-clear { + background: transparent; + border: none; + color: var(--figli-text-light); + cursor: pointer; + font-size: 0.8rem; + line-height: 1; + padding: 0.15rem; +} +#figli-home-app .figli-filter-clear:hover { + color: var(--figli-error); +} + +/* Compte/Type filters: a native - - + +
+
{{ filterCompte.length ? filterCompte.join(', ') : 'Tous' }}
+
+ +
+
+ +