From a813fcf875b04a810464c1aa5739a610b85f5529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Gastinel?= <264859180+gastinelt@users.noreply.github.com> Date: Fri, 6 Nov 2026 17:02:30 +0100 Subject: [PATCH] =?UTF-8?q?forum=20:=20=C2=AB=20Commenter=20=C2=BB=20devie?= =?UTF-8?q?nt=20=C2=AB=20R=C3=A9pondre=20=C2=BB,=20champ=20d'une=20ligne?= =?UTF-8?q?=20et=20bouton=20Envoyer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- forum/server.py | 13 ++++++------- forum/tests/test_forum.py | 4 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/forum/server.py b/forum/server.py index 00a3981..1942444 100644 --- a/forum/server.py +++ b/forum/server.py @@ -326,7 +326,7 @@ details.reac-menu[open] .reac-choix .reac{animation:reac-entre .3s ease-out forw .commentaire .outils summary{padding:2px 0}.commentaire .outils details[open]{flex-basis:100%} button.lien{background:none;border:0;padding:2px 0;color:var(--sapin);font-weight:600;cursor:pointer;margin:0}button.lien:hover{text-decoration:underline;background:none} .plus-commentaires>summary{cursor:pointer;color:var(--sapin);font-weight:600;padding:4px 0} -.actions .commenter textarea{min-height:90px} +.visuel-cache{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.repondre-court{display:flex;gap:8px;margin-top:8px}.repondre-court input[type=text]{flex:1;min-width:0}.repondre-court button{flex:none} .compte-menu .entete .avatar{margin-top:8px} .bienvenue{max-width:780px} .etapes{display:flex;gap:8px;margin:0 0 18px;color:var(--gris)}.etapes span{flex:1;border-bottom:3px solid var(--pierre);padding-bottom:4px} @@ -1645,12 +1645,11 @@ class Handler(BaseHTTPRequestHandler): lien = "Copier le lien" % m["id"] if f.peut_commenter(user, t, m): lien += ("" - "
Commenter
" - "" - "" - "

Texte simple, %d caractères au plus. Les adresses http(s) deviennent des liens.

" - "
" - % (m["id"], m["id"], m["id"], COMMENTAIRE_MAX, COMMENTAIRE_MAX)) + "
Répondre
" + "" + "" + "
" + % (m["id"], m["id"], m["id"], COMMENTAIRE_MAX)) if roles.peut(rs, "signaler") and not m["hidden"]: outils += ("
Signaler le message
" "