Skip to content

Commit

Permalink
fix: text wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
wyseguyonline committed Jul 12, 2017
1 parent 4d85569 commit 9975be2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/component-owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,14 @@ class ComponentOwner extends Component {
const chipStyle = appLevel ? {marginTop: this.state.chipVertPos} : {top: this.state.chipVertPos};
const activeStyle = active === 'true' ? '' : ' pe-loadingIndicator-overlay-inactive';
const childrenContent = children ? (<div aria-hidden={this.state.active} className={'loadingIndicatorContent-' + this.props.id}>{children}</div>) : this.convertToJSX(htmlString);
const chipTextWidth = data.text.chipText.length > 20 ? {width: 140} : {};

return (
<div className="pe-loadingIndicator">
<div className={overlayStyle + activeStyle}>
<div className="pe-loadingIndicator-chip" style={chipStyle}>
<LoadingSpinner />
<div className="pe-loadingIndicator-chip-text">{data.text.chipText}</div>
<div className="pe-loadingIndicator-chip-text" style={chipTextWidth}>{data.text.chipText}</div>
</div>
</div>
<div aria-live="polite" aria-busy={active}>
Expand Down

0 comments on commit 9975be2

Please sign in to comment.