fix: make spell check underlines much more visible

- Change from dotted to wavy underline (like Microsoft Word)
- Add fallback border for browser compatibility
- Increase underline offset and add padding
- Use brighter red color for better visibility
- Addresses issue where spell check lines were barely visible
This commit is contained in:
spencrmartin
2025-09-25 09:22:59 -04:00
parent 6a5f5fadaa
commit 5d9a4a663c
+6 -3
View File
@@ -322,10 +322,13 @@ export const RichChatInput = forwardRef<RichChatInputRef, RichChatInputProps>(({
className="inline whitespace-pre-wrap"
style={{
textDecoration: 'underline',
textDecorationColor: '#dc2626', // red-600
textDecorationStyle: 'dotted',
textDecorationColor: '#dc2626', // Bright red
textDecorationStyle: 'wavy', // Wavy line like in Word
textDecorationThickness: '2px',
textUnderlineOffset: '2px'
textUnderlineOffset: '3px',
// Fallback for browsers that don't support wavy
borderBottom: '2px dotted #dc2626',
paddingBottom: '1px'
}}
title={`Possible misspelling: ${content}`}
>