diff --git a/static/js/ui.js b/static/js/ui.js index 6b21411b5f..4c9f01faac 100644 --- a/static/js/ui.js +++ b/static/js/ui.js @@ -107,8 +107,8 @@ function message_unhover() { function message_hover(message_row) { var message; - var edit_content_button = ''; + var id = parseInt(message_row.attr("zid"), 10); if (current_message_hover && message_row && current_message_hover.attr("zid") === message_row.attr("zid")) { return; } @@ -119,9 +119,10 @@ function message_hover(message_row) { message = current_msg_list.get(rows.id(message_row)); message_unhover(); message_row.addClass('message_hovered'); - if ((message_edit.get_editability(message) === message_edit.editability_types.FULL) && - !message.status_message) { - message_row.find(".edit_content").html(edit_content_button); + if ((message_edit.get_editability(message) === message_edit.editability_types.FULL) && !message.status_message) { + message_row.find(".edit_content").html(''); + } else { + message_row.find(".edit_content").html(''); } current_message_hover = message_row; } diff --git a/static/styles/zulip.css b/static/styles/zulip.css index 2953ee0cdc..90210d573d 100644 --- a/static/styles/zulip.css +++ b/static/styles/zulip.css @@ -707,7 +707,7 @@ td.pointer { display: inline-block; position: absolute; top: 2px; - right: -38px; + right: -55px; } .include-sender .message_controls { @@ -1124,10 +1124,10 @@ a.message_label_clickable:hover { .edit_content { display: inline-block; position: relative; - left: 15px; + left: 22px; width: 0px; height: 0px; - opacity: .4; + color: #bbb; } .edit_content i { @@ -1190,7 +1190,7 @@ a.dark_background:hover, .info { display: inline-block; position: relative; - left: 40px; + left: 3px; font-size: 15px; color: #bbb; visibility: hidden; diff --git a/static/templates/single_message.handlebars b/static/templates/single_message.handlebars index 92b086158c..22642a3dc3 100644 --- a/static/templates/single_message.handlebars +++ b/static/templates/single_message.handlebars @@ -38,8 +38,8 @@ +