mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
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:
@@ -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}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user