Allow line breaks
This commit is contained in:
parent
82327da031
commit
5883adc2c1
@ -7,7 +7,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"design": "marked -o design.html < design.md",
|
"design": "marked -o design.html < design.md",
|
||||||
"test": "node --expose-gc node_modules/mocha/bin/_mocha test/**/*.test.ts",
|
"test": "node --expose-gc node_modules/mocha/bin/_mocha test/**/*.test.ts",
|
||||||
"repl": "node -r ts-node/register/transpile-only src/repl.ts"
|
"repl": "node -r ts-node/register/transpile-only src/repl.ts",
|
||||||
|
"bundle": "cd packages/web && yarn bundle"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chai": "^4.3.0",
|
"@types/chai": "^4.3.0",
|
||||||
|
@ -59,6 +59,9 @@ const AttachmentContainer = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
`
|
`
|
||||||
|
const PlainNotes = styled.p`
|
||||||
|
white-space: pre-wrap;
|
||||||
|
`
|
||||||
|
|
||||||
const SectionsView = memo<{ sections?: ItemDetails["sections"] }>(({ sections }) =>
|
const SectionsView = memo<{ sections?: ItemDetails["sections"] }>(({ sections }) =>
|
||||||
sections?.length ? (
|
sections?.length ? (
|
||||||
@ -135,7 +138,7 @@ export const ItemView = memo<ItemViewProps>(({ className, item }) => {
|
|||||||
<ExtraField>
|
<ExtraField>
|
||||||
<FieldTitle>notes</FieldTitle>
|
<FieldTitle>notes</FieldTitle>
|
||||||
<div>
|
<div>
|
||||||
<p>{item.details.notesPlain}</p>
|
<PlainNotes>{item.details.notesPlain}</PlainNotes>
|
||||||
</div>
|
</div>
|
||||||
</ExtraField>
|
</ExtraField>
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user