diff --git a/frontend/src/app/components/editor/RichPromptEditor.tsx b/frontend/src/app/components/editor/RichPromptEditor.tsx index 7ef2b468..f726bfc2 100644 --- a/frontend/src/app/components/editor/RichPromptEditor.tsx +++ b/frontend/src/app/components/editor/RichPromptEditor.tsx @@ -321,32 +321,62 @@ const RichPromptEditor: React.FC = ({ )} -
setFocused(true)} - onBlur={() => setFocused(false)} - style={{ - width: '100%', - minHeight: `${minHeight}rem`, - maxHeight: `${maxHeight}rem`, - overflowY: 'auto', - background: 'transparent', - border: 'none', - outline: 'none', - color: c.text.primary, - fontSize: `${FONT_SIZE}rem`, - lineHeight: `${LINE_HEIGHT}`, - fontFamily: 'inherit', - wordBreak: 'break-word', - whiteSpace: 'pre-wrap', - }} - /> + {(typeof navigator !== 'undefined' && navigator.userAgent.includes('Windows') && navigator.userAgent.includes('Electron')) ? ( + // Windows-Electron:
hits the Chromium 144 TSF native crash; fall back to a plain textarea (loses inline pills but stays alive). +