diff --git a/css/molecules/MessageTile.css b/css/molecules/MessageTile.css index 777c18a758..ec4a7f6443 100644 --- a/css/molecules/MessageTile.css +++ b/css/molecules/MessageTile.css @@ -1,3 +1,11 @@ .mx_MessageTile { border-bottom: 1px solid #eee; } + +.mx_MessageTile.sending { + color: #ddd; +} + +.mx_MessageTile.not_sent { + color: #f11; +} diff --git a/src/molecules/MessageTile.js b/src/molecules/MessageTile.js index 8207f74351..a4e8f7422d 100644 --- a/src/molecules/MessageTile.js +++ b/src/molecules/MessageTile.js @@ -1,5 +1,7 @@ var React = require('react'); +var classNames = require("classnames"); + var ComponentBroker = require('../ComponentBroker'); var MessageTimestamp = ComponentBroker.get('atoms/MessageTimestamp'); @@ -20,8 +22,13 @@ module.exports = React.createClass({ if (msgtype && tileTypes[msgtype]) { TileType = tileTypes[msgtype]; } + var classes = classNames({ + mx_MessageTile: true, + sending: this.props.mxEvent.status == 'sending', + not_sent: this.props.mxEvent.status == 'not_sent' + }); return ( -
+