diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d198d1..a45dc0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ gouttière 64px, visible au survol/focus comme le handle) : icône **bulle de conversation avec un +**, `onclick="E.commentBlock(idx)"` → tiroir de commentaires ancré sur le bloc (ou sur la sélection vivante s'il y en a une). + Icône = tracé `message-square` (Feather) + `+` centré. Masqué sur mobile (2 breakpoints, comme le handle) et sur page verrouillée. - remplace l'ancien `.block-actions` de `renderBlock` : rendu en `opacity:0` **sans règle de survol** (jamais de classe `.visible`) → un `+` invisible diff --git a/static/js/page_editor_scripts.js b/static/js/page_editor_scripts.js index 892a308..c1864bb 100644 --- a/static/js/page_editor_scripts.js +++ b/static/js/page_editor_scripts.js @@ -813,7 +813,7 @@ const PD=(()=>{try{const el=document.getElementById('page-data');return el?JSON. // v7.66 : bouton « commenter ce bloc » à droite du bloc (gouttière 64px), // icône bulle de conversation + . Remplace l'ancien .block-actions mort // (opacity:0 sans règle de survol → un + invisible qui capait les clics). - const cmtBtn=idx>=0?``:''; + const cmtBtn=idx>=0?``:''; // + « ajouter un bloc dessous », juste avant le handle (gouttière 64px) const insertBtn=idx>=0?``:''; return `
diff --git a/tests/test_v766_slash_esc_comment_btn.py b/tests/test_v766_slash_esc_comment_btn.py index 49c3f16..e4feb52 100644 --- a/tests/test_v766_slash_esc_comment_btn.py +++ b/tests/test_v766_slash_esc_comment_btn.py @@ -25,8 +25,8 @@ def test_comment_button_on_the_right_of_the_block(): assert i_content < i_btn # icône bulle de conversation +, ancre = commentaire du bloc assert 'onclick="E.commentBlock(${idx})"' in EDITOR_JS - assert EDITOR_JS.count("' in EDITOR_JS # le + dans la bulle # l'ancien .block-actions mort (opacity:0 sans survol) a disparu de renderBlock assert "const actions=idx>=0?" not in EDITOR_JS