Allow line breaks
This commit is contained in:
@ -59,6 +59,9 @@ const AttachmentContainer = styled.div`
|
||||
display: flex;
|
||||
margin: 5px 0;
|
||||
`
|
||||
const PlainNotes = styled.p`
|
||||
white-space: pre-wrap;
|
||||
`
|
||||
|
||||
const SectionsView = memo<{ sections?: ItemDetails["sections"] }>(({ sections }) =>
|
||||
sections?.length ? (
|
||||
@ -135,7 +138,7 @@ export const ItemView = memo<ItemViewProps>(({ className, item }) => {
|
||||
<ExtraField>
|
||||
<FieldTitle>notes</FieldTitle>
|
||||
<div>
|
||||
<p>{item.details.notesPlain}</p>
|
||||
<PlainNotes>{item.details.notesPlain}</PlainNotes>
|
||||
</div>
|
||||
</ExtraField>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user