import * as React from 'react';
import MUI from 'material-ui';
import Theme from './MurphyTheme';

interface Props {
  progress: number;
  message: string;
  error: boolean;
}

export default class ProgressCard extends React.Component<Props, {}> {
  constructor(props: Props) {
    super(props);
  }

  static childContextTypes: any = {
    muiTheme: React.PropTypes.object
  }

  private get styles() {
    const padding: number = Theme.spacing.desktopGutter;
    return {
      progressMessage: {
        fontSize: 14,
        marginTop: padding / 2,
        wordWrap: 'break-word'
      },
      error: {
        color: 'red'
      }
    };
  }

  render() {
    return (
      <div>
        <MUI.LinearProgress mode="determinate" value={this.props.progress * 100} color={this.props.error ? '#F44336' : undefined} />
        <div style={this.styles.progressMessage}>{this.props.message}</div>
      </div>
    );
  }
}

import * as React from 'react';
import MUI from 'material-ui';
import Theme from './MurphyTheme';

interface Props {
  progress: number;
  message: string;
  error: boolean;
}

export default class ProgressCard extends React.Component<Props, {}> {
  constructor(props: Props) {
    super(props);
  }

  static childContextTypes: any = {
    muiTheme: React.PropTypes.object
  }

  private get styles() {
    const padding: number = Theme.spacing.desktopGutter;
    return {
      progressMessage: {
        fontSize: 14,
        marginTop: padding / 2
      },
      error: {
        color: 'red'
      }
    };
  }

  render() {
    return (
      <div>
        <MUI.LinearProgress mode="determinate" value={this.props.progress * 100} color={this.props.error ? '#F44336' : undefined} />
        <div style={this.styles.progressMessage}>{this.props.message}</div>
      </div>
    );
  }
}

--- 
+++ 
@@ -22,7 +22,8 @@
     return {
       progressMessage: {
         fontSize: 14,
-        marginTop: padding / 2
+        marginTop: padding / 2,
+        wordWrap: 'break-word'
       },
       error: {
         color: 'red'
Fix long filenames overflowing progress card.
