keep 0 margin as before

This commit is contained in:
Simon Knott 2024-10-10 12:12:33 +02:00
parent 6bc0848f0a
commit 03082bdb0e
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -87,7 +87,7 @@ export const AttachmentLink: React.FunctionComponent<{
: <span>{linkifyText(attachment.name)}</span> : <span>{linkifyText(attachment.name)}</span>
)} )}
</span>} loadChildren={attachment.body ? () => { </span>} loadChildren={attachment.body ? () => {
return [<div key={1} className='attachment-body' style={{ marginLeft: 24 + (depth ?? 0) * 22 + 4 }}><CopyToClipboard value={attachment.body!}/>{linkifyText(attachment.body!)}</div>]; return [<div key={1} className='attachment-body' style={{ marginLeft: 24 + (depth ?? 0) * 22 }}><CopyToClipboard value={attachment.body!}/>{linkifyText(attachment.body!)}</div>];
} : undefined} depth={depth ?? 0} style={{ lineHeight: '32px' }}></TreeItem>; } : undefined} depth={depth ?? 0} style={{ lineHeight: '32px' }}></TreeItem>;
}; };