feat(chat): enable typing during annotation, increase line thickness, and add draw badge

This commit is contained in:
yiling
2026-05-27 22:05:10 +08:00
parent 67cab62c02
commit aea79cd210
3 changed files with 25 additions and 15 deletions
+2 -4
View File
@@ -599,13 +599,11 @@ export const ChatInput = React.forwardRef<HTMLDivElement, ChatInputProps>(
)}
<div
ref={editorRef}
contentEditable={!isDrawing}
contentEditable
suppressContentEditableWarning
onInput={handleInput}
onKeyDown={handleKeyDown}
data-placeholder={
isDrawing ? 'Drawing active...' : replyingTo ? 'Reply...' : 'Message...'
}
data-placeholder={replyingTo ? 'Reply...' : 'Message...'}
className={`bg-transparent border-none focus:ring-0 resize-none min-h-[40px] leading-relaxed py-2 focus:outline-none block ${isTimestampEnabled && currentTime !== undefined && frameRate !== undefined && !hasContent ? 'pl-[120px]' : ''}`}
/>
</div>