Task/Event: enable word wrapping for decsriptions.

Fixes #135.
master
Tom Hacohen 2020-07-01 09:40:35 +03:00
parent f372f36005
commit fb8f3ff574
2 changed files with 2 additions and 2 deletions

View File

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

View File

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