Event and task description: show the text preformatted.

We previously had it in a div, which was dropping newlines.
master
Tom Hacohen 2019-02-14 21:29:49 +00:00
parent 47c259d803
commit a32e2c9019
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class Event extends React.PureComponent {
<div><u>{this.props.item.location}</u></div>
</PimItemHeader>
<div style={style.content}>
<div>{this.props.item.description}</div>
<pre>{this.props.item.description}</pre>
{(this.props.item.attendees.length > 0) && (
<div>Attendees: {this.props.item.attendees.map((x) => (x.getFirstValue())).join(', ')}</div>)}
</div>

View File

@ -37,7 +37,7 @@ class Task extends React.PureComponent {
<div><u>{this.props.item.location}</u></div>
</PimItemHeader>
<div style={style.content}>
<div>{this.props.item.description}</div>
<pre>{this.props.item.description}</pre>
{(this.props.item.attendees.length > 0) && (
<div>Attendees: {this.props.item.attendees.map((x) => (x.getFirstValue())).join(', ')}</div>)}
</div>