Task/Event: enable word wrapping for decsriptions.

Fixes #135.
master
Tom Hacohen 4 years ago
parent f372f36005
commit fb8f3ff574

@ -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>

@ -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>

Loading…
Cancel
Save