From 97eda84cd105a559d458519074931b44f18f5488 Mon Sep 17 00:00:00 2001 From: bruno Date: Sun, 12 Jul 2026 15:40:24 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20menu=20contextuel=20=E2=80=94=20tags=20?= =?UTF-8?q?avec=20couleurs=20+=20liste=20des=20tags=20disponibles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Section TAGS toujours visible (plus besoin de cliquer pour ouvrir un sous-menu) - Tags existants affichés avec leur pastille de couleur (⦿ 10px) + bouton ✕ - Liste des tags DISPONIBLES (pas encore assignés) avec couleurs, clic → ajoute le tag à l'élément. Compteur d'utilisation affiché - Palette 14 couleurs pour créer un nouveau tag (carrés 18px arrondis) - Input pour nouveau tag avec palette de couleurs - CSS: .ctx-section, .ctx-tag-color, .color-swatch-ctx, .ctx-add-tag-item --- app/templates/local_workspace.html | 93 ++++++++++++++++++++++-------- 1 file changed, 69 insertions(+), 24 deletions(-) diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index e943bc4..60ec5f9 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -278,6 +278,12 @@ .ctx-tag-item{justify-content:space-between;} .ctx-tag-add{color:var(--text-tertiary);font-size:12px;padding:4px 14px;cursor:pointer;} .ctx-tag-add:hover{color:var(--accent);} +.ctx-section{padding:5px 14px;font-size:11px;font-weight:600;color:var(--text-dim);text-transform:uppercase;letter-spacing:.5px;} +.ctx-tag-color{width:10px;height:10px;border-radius:50%;flex-shrink:0;} +.color-swatch-ctx{width:18px;height:18px;border-radius:4px;cursor:pointer;border:2px solid transparent;transition:all 100ms;} +.color-swatch-ctx:hover{transform:scale(1.15);} +.color-swatch-ctx.selected{border-color:var(--text);box-shadow:0 0 0 2px var(--accent);} +.ctx-add-tag-item:hover{background:rgba(35,131,226,.08);} .ctx-has-sub{justify-content:space-between;} /* Old view-selector kept for no conflict, but hidden */ @@ -768,25 +774,43 @@
✏️ Rename
📋 Duplicate
-
- 🏷️ Tags - ▸ -
-
-