From 495b0e45235b646e7bb6aedf53004ee359b6887f Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Tue, 30 Jun 2015 08:42:08 -0400 Subject: [PATCH] add default icon for non-user autocompletes --- web/react/components/mention.jsx | 10 ++++++++-- web/sass-files/sass/partials/_mentions.scss | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/web/react/components/mention.jsx b/web/react/components/mention.jsx index f1292c743c..3c33ddf493 100644 --- a/web/react/components/mention.jsx +++ b/web/react/components/mention.jsx @@ -6,10 +6,16 @@ module.exports = React.createClass({ this.props.handleClick(this.props.username); }, render: function() { + var icon; + if (this.props.id != null) { + icon = ; + } else { + icon = ; + } return (
- - @{this.props.username}{this.props.secondary_text} +
{icon}
+
@{this.props.username}{this.props.secondary_text}
); } diff --git a/web/sass-files/sass/partials/_mentions.scss b/web/sass-files/sass/partials/_mentions.scss index cb6ff16c55..ee254b5462 100644 --- a/web/sass-files/sass/partials/_mentions.scss +++ b/web/sass-files/sass/partials/_mentions.scss @@ -56,3 +56,8 @@ .mention-link { color:$primary-color; } + +.mention-align { + position:relative; + top:5px; +}