mail page fix design

This commit is contained in:
alma 2025-04-21 20:18:06 +02:00
parent 0c7ab8addb
commit 72aaefd76c

View File

@ -224,19 +224,16 @@ export default function ComposeEmail({
{/* Message Body */} {/* Message Body */}
<div className="flex-1"> <div className="flex-1">
<Label htmlFor="message" className="block text-sm font-medium text-gray-700">Message</Label> <Label htmlFor="message" className="block text-sm font-medium text-gray-700">Message</Label>
<div <Textarea
ref={composeBodyRef} id="message"
contentEditable value={composeBody}
onInput={handleInput} onChange={(e) => setComposeBody(e.target.value)}
className="w-full h-full mt-1 bg-white border border-gray-300 rounded-md p-2 text-gray-900 overflow-y-auto prose max-w-none" className="w-full h-full mt-1 bg-white border border-gray-300 rounded-md p-2 text-gray-900 overflow-y-auto"
style={{ style={{
minHeight: '200px', minHeight: '200px',
direction: 'ltr', direction: 'ltr',
textAlign: 'left', textAlign: 'left'
whiteSpace: 'pre-wrap',
wordBreak: 'break-word'
}} }}
dangerouslySetInnerHTML={{ __html: composeBody }}
/> />
</div> </div>
</div> </div>