From ec4de889513f9616b33922b6e8c0dae38e6b7b8d Mon Sep 17 00:00:00 2001 From: nathaninline Date: Thu, 23 Jul 2026 15:41:56 +0200 Subject: [PATCH] UI editeur preset : "Telecharger un modele" + bouton telechargement compact MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Libelle "Telecharger depuis Hugging Face" -> "Telecharger un modele" (pas forcement HF, juste un lien direct .gguf). - Le bouton devient une icone compacte (⬇) collee au champ (input-btn) au lieu d'un gros bouton "telecharger" qui prenait toute la largeur. --- internal/jean/ui/index.html | 12 ++++++++---- internal/jean/ui/src/index.tmpl.html | 8 ++++---- internal/jean/ui/src/styles.css | 4 ++++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/internal/jean/ui/index.html b/internal/jean/ui/index.html index 8b018e3..64018d7 100644 --- a/internal/jean/ui/index.html +++ b/internal/jean/ui/index.html @@ -333,6 +333,10 @@ button:disabled{opacity:.5;cursor:not-allowed} .row{display:flex;gap:6px} .row .ctl{flex:1;min-width:0} .btn-dl{flex-shrink:0;margin:0} +.input-btn{display:flex} +.input-btn .ctl{flex:1;min-width:0;border-top-right-radius:0;border-bottom-right-radius:0} +.input-btn .btn-in{flex-shrink:0;margin:0;padding:9px 13px;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0} +.input-btn .btn-in:hover{border-left:0} .seg{display:flex;gap:6px} .seg>label{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;min-height:46px;padding:6px 4px;border:1px solid var(--border);border-radius:8px;cursor:pointer;font-size:12px;background:var(--panel);transition:border-color .12s,background .12s,color .12s} .seg>label:hover{border-color:var(--accent)} @@ -566,10 +570,10 @@ button:disabled{opacity:.5;cursor:not-allowed}
- -
- - + +
+ +
diff --git a/internal/jean/ui/src/index.tmpl.html b/internal/jean/ui/src/index.tmpl.html index 5cf1f92..38fb913 100644 --- a/internal/jean/ui/src/index.tmpl.html +++ b/internal/jean/ui/src/index.tmpl.html @@ -236,10 +236,10 @@
- -
- - + +
+ +
diff --git a/internal/jean/ui/src/styles.css b/internal/jean/ui/src/styles.css index 4f81385..815ecc3 100644 --- a/internal/jean/ui/src/styles.css +++ b/internal/jean/ui/src/styles.css @@ -314,6 +314,10 @@ button:disabled{opacity:.5;cursor:not-allowed} .row{display:flex;gap:6px} .row .ctl{flex:1;min-width:0} .btn-dl{flex-shrink:0;margin:0} +.input-btn{display:flex} +.input-btn .ctl{flex:1;min-width:0;border-top-right-radius:0;border-bottom-right-radius:0} +.input-btn .btn-in{flex-shrink:0;margin:0;padding:9px 13px;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0} +.input-btn .btn-in:hover{border-left:0} .seg{display:flex;gap:6px} .seg>label{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;min-height:46px;padding:6px 4px;border:1px solid var(--border);border-radius:8px;cursor:pointer;font-size:12px;background:var(--panel);transition:border-color .12s,background .12s,color .12s} .seg>label:hover{border-color:var(--accent)}