summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorralder <ralder@yandex.ru>2015-06-26 15:58:34 -0700
committerralder <ralder@yandex.ru>2015-06-26 15:58:34 -0700
commitf25cdbdb08c11fc9cd3e6bbf0748b67d2635ff47 (patch)
tree074ad49d79daa2ce7509cab41ddb052a44641a4d /web
parentac56304bc7a869a4d531810e5380f595426ec7cf (diff)
downloadchat-f25cdbdb08c11fc9cd3e6bbf0748b67d2635ff47.tar.gz
chat-f25cdbdb08c11fc9cd3e6bbf0748b67d2635ff47.tar.bz2
chat-f25cdbdb08c11fc9cd3e6bbf0748b67d2635ff47.zip
gui: fix broken mailto link in user-popover
Diffstat (limited to 'web')
-rw-r--r--web/react/components/user_profile.jsx10
1 files changed, 4 insertions, 6 deletions
diff --git a/web/react/components/user_profile.jsx b/web/react/components/user_profile.jsx
index 8ffad737d..648960471 100644
--- a/web/react/components/user_profile.jsx
+++ b/web/react/components/user_profile.jsx
@@ -10,8 +10,7 @@ function getStateFromStores(userId) {
if (profile == null) {
return { profile: { id: "0", username: "..."} };
- }
- else {
+ } else {
return { profile: profile };
}
}
@@ -54,12 +53,11 @@ module.exports = React.createClass({
var name = this.props.overwriteName ? this.props.overwriteName : this.state.profile.username;
- var data_content = ""
- data_content += "<img style='margin: 10px' src='/api/v1/users/" + this.state.profile.id + "/image' height='128' width='128' />"
+ var data_content = "<img style='margin: 10px' src='/api/v1/users/" + this.state.profile.id + "/image' height='128' width='128' />";
if (!config.ShowEmail) {
- data_content += "<div><span style='white-space:nowrap;'>Email not shared</span></div>";
+ data_content += "<div class='text-nowrap'>Email not shared</div>";
} else {
- data_content += "<div><a href='mailto:'" + this.state.profile.email + "'' style='white-space:nowrap;text-transform:lowercase;'>" + this.state.profile.email + "</a></div>";
+ data_content += "<div><a href='mailto:" + this.state.profile.email + "' class='text-nowrap text-lowercase'>" + this.state.profile.email + "</a></div>";
}
return (