diff --git a/ui/desktop/src/components/RichChatInput.tsx b/ui/desktop/src/components/RichChatInput.tsx index 20b338e802..4b1f2f91ff 100644 --- a/ui/desktop/src/components/RichChatInput.tsx +++ b/ui/desktop/src/components/RichChatInput.tsx @@ -384,23 +384,10 @@ export const RichChatInput = forwardRef(({ { @@ -432,11 +419,6 @@ export const RichChatInput = forwardRef(({ onMouseEnter={(e) => { console.log('🖱️ MOUSEENTER: Mouse entered misspelled word:', content); - // Add hover effect - e.currentTarget.style.backgroundColor = '#fee2e2'; - e.currentTarget.style.borderColor = '#f87171'; - e.currentTarget.style.transform = 'scale(1.02)'; - if (misspelledData) { const rect = e.currentTarget.getBoundingClientRect(); console.log('🖱️ MOUSEENTER: Element rect:', rect); @@ -459,11 +441,6 @@ export const RichChatInput = forwardRef(({ onMouseLeave={(e) => { console.log('🖱️ MOUSELEAVE: Mouse left misspelled word:', content); - // Remove hover effect - e.currentTarget.style.backgroundColor = '#fef2f2'; - e.currentTarget.style.borderColor = '#fca5a5'; - e.currentTarget.style.transform = 'scale(1)'; - // Add a small delay before hiding to allow moving to tooltip setTimeout(() => { setTooltip(prev => { diff --git a/ui/desktop/src/components/SpellCheckTooltip.tsx b/ui/desktop/src/components/SpellCheckTooltip.tsx index 251775fc37..a6bf4ffd1c 100644 --- a/ui/desktop/src/components/SpellCheckTooltip.tsx +++ b/ui/desktop/src/components/SpellCheckTooltip.tsx @@ -101,7 +101,7 @@ export const SpellCheckTooltip: React.FC = ({ ref={tooltipRef} tabIndex={-1} // Make it focusable for keyboard events data-spell-tooltip="true" // For click detection - className="fixed z-50 bg-white border border-gray-300 rounded-lg shadow-xl py-2 min-w-48 max-w-64 outline-none" + className="fixed z-50 bg-background-default border border-border-default rounded-lg shadow-xl py-2 min-w-48 max-w-64 outline-none" style={{ left: position.x, top: position.y - 8, // Position slightly above the word @@ -112,8 +112,8 @@ export const SpellCheckTooltip: React.FC = ({ onMouseLeave={onMouseLeave} > {/* Header */} -
- Suggestions for "{misspelledWord}" +
+ Suggestions for "{misspelledWord}"
{/* Suggestions */} @@ -131,15 +131,15 @@ export const SpellCheckTooltip: React.FC = ({ onMouseEnter={() => setSelectedIndex(index)} className={`w-full text-left px-3 py-2 text-sm transition-all duration-150 flex items-center gap-2 ${ selectedIndex === index - ? 'bg-blue-50 text-blue-900 border-l-2 border-blue-500' - : 'text-gray-800 hover:bg-gray-50' + ? 'bg-blue-50 dark:bg-blue-900/20 text-blue-900 dark:text-blue-100 border-l-2 border-blue-500' + : 'text-text-default hover:bg-background-subtle' }`} > {index + 1} @@ -149,13 +149,13 @@ export const SpellCheckTooltip: React.FC = ({ ))}
) : ( -
+
No suggestions available
)} {/* Separator */} -
+
{/* Additional actions */} @@ -178,14 +178,14 @@ export const SpellCheckTooltip: React.FC = ({ console.log('🖱️ IGNORE CLICKED'); onIgnore(); }} - className="w-full text-left px-3 py-1.5 text-xs text-gray-600 hover:bg-gray-50 transition-colors flex items-center gap-2" + className="w-full text-left px-3 py-1.5 text-xs text-text-muted hover:bg-background-subtle transition-colors flex items-center gap-2" > - × + × Ignore word {/* Keyboard hints */} -
+
Press 1-5 to select • ↑↓ to navigate • Enter to apply • Esc to close