fix: move gutter button fully outside text margin and translate placeholder
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 33s

This commit is contained in:
2026-05-02 22:50:39 +02:00
parent 840a72948b
commit 6d6e12ba05
2 changed files with 4 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ export const RichTextEditor = forwardRef<RichTextEditorHandle, RichTextEditorPro
Superscript, Superscript,
Subscript, Subscript,
Typography, Typography,
Placeholder.configure({ placeholder: placeholder || "Type '/' for commands..." }), Placeholder.configure({ placeholder: placeholder || t('richTextEditor.placeholder') || "Tapez '/' pour voir les commandes..." }),
], ],
content: content || '', content: content || '',
immediatelyRender: false, immediatelyRender: false,
@@ -161,10 +161,10 @@ export const RichTextEditor = forwardRef<RichTextEditorHandle, RichTextEditorPro
)} )}
{editor && ( {editor && (
<FloatingMenu editor={editor} className="flex items-center" tippyOptions={{ placement: 'left', offset: [0, 16] }}> <FloatingMenu editor={editor} className="flex items-center -ml-12" tippyOptions={{ placement: 'left' }}>
<button <button
onClick={() => editor.chain().focus().insertContent('/').run()} onClick={() => editor.chain().focus().insertContent('/').run()}
className="flex items-center justify-center w-7 h-7 rounded-full text-muted-foreground/50 bg-transparent hover:bg-background hover:text-foreground hover:shadow-md hover:scale-110 active:scale-95 transition-all duration-300 group ring-1 ring-transparent hover:ring-border/50" className="flex items-center justify-center w-6 h-6 rounded-full text-muted-foreground/40 bg-transparent hover:bg-background hover:text-foreground hover:shadow-md hover:scale-110 active:scale-95 transition-all duration-300 group ring-1 ring-transparent hover:ring-border/50"
title={t('richTextEditor.addBlock') || 'Add block'} title={t('richTextEditor.addBlock') || 'Add block'}
type="button" type="button"
> >

View File

@@ -460,6 +460,7 @@
"superscript": "Exposant", "superscript": "Exposant",
"subscript": "Indice", "subscript": "Indice",
"addBlock": "Ajouter un bloc", "addBlock": "Ajouter un bloc",
"placeholder": "Tapez '/' pour voir les commandes...",
"slashHint": "↑↓ naviguer · Entrée insérer · Tab changer de section", "slashHint": "↑↓ naviguer · Entrée insérer · Tab changer de section",
"slashLoading": "IA Note réfléchit...", "slashLoading": "IA Note réfléchit...",
"slashTabAll": "Tout", "slashTabAll": "Tout",