From 441a9540cae44e8275a3783cb9a1c6471577a646 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 3 Jan 2016 00:11:11 +0000 Subject: [PATCH] sync CSS classnames with current react component names --- src/HtmlUtils.js | 2 +- src/components/views/messages/MFileBody.js | 6 +++--- src/components/views/messages/MImageBody.js | 10 +++++----- src/components/views/messages/MVideoBody.js | 4 ++-- src/components/views/messages/TextualBody.js | 6 +++--- src/components/views/messages/TextualEvent.js | 2 +- src/components/views/messages/UnknownBody.js | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index e194f4a3bd..95c6a46458 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -150,7 +150,7 @@ module.exports = { var body; if (highlights && highlights.length > 0) { - var highlighter = new Highlighter(isHtml, "mx_MessageTile_searchHighlight", opts.onHighlightClick); + var highlighter = new Highlighter(isHtml, "mx_EventTile_searchHighlight", opts.onHighlightClick); body = highlighter.applyHighlights(safeBody, highlights); } else { diff --git a/src/components/views/messages/MFileBody.js b/src/components/views/messages/MFileBody.js index be7f2f0593..193cafe255 100644 --- a/src/components/views/messages/MFileBody.js +++ b/src/components/views/messages/MFileBody.js @@ -54,8 +54,8 @@ module.exports = React.createClass({ if (httpUrl) { return ( - -
+ +
Download {text} @@ -65,7 +65,7 @@ module.exports = React.createClass({ ); } else { var extra = text ? ': '+text : ''; - return + return Invalid file{extra} } diff --git a/src/components/views/messages/MImageBody.js b/src/components/views/messages/MImageBody.js index 02ac50ca15..6afdddc307 100644 --- a/src/components/views/messages/MImageBody.js +++ b/src/components/views/messages/MImageBody.js @@ -109,14 +109,14 @@ module.exports = React.createClass({ var thumbUrl = this._getThumbUrl(); if (thumbUrl) { return ( - + - {content.body} -
+
Download {content.body} ({ content.info && content.info.size ? filesize(content.info.size) : "Unknown size" }) @@ -126,13 +126,13 @@ module.exports = React.createClass({ ); } else if (content.body) { return ( - + Image '{content.body}' cannot be displayed. ); } else { return ( - + This image cannot be displayed. ); diff --git a/src/components/views/messages/MVideoBody.js b/src/components/views/messages/MVideoBody.js index 0d022f1648..ddd3dceca7 100644 --- a/src/components/views/messages/MVideoBody.js +++ b/src/components/views/messages/MVideoBody.js @@ -70,8 +70,8 @@ module.exports = React.createClass({ } return ( - -