Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message view: Show failed message icon tooltips similar to other icons.

m-e-l-u-h-a-ne7b1de8ace45
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index 626f4a47900..bfc810bcdb8 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -919,8 +919,6 @@ td.pointer {
/* error icon width is 11px, gap between icons equals 28px - 2*11px = 6px */
width: 30px;
cursor: pointer;
- font-weight: bold;
- color: hsl(0, 100%, 50%);
position: relative;
vertical-align: middle;
@@ -929,6 +927,12 @@ td.pointer {
animation: rotate 1s infinite linear;
}
+
+ .failed_message_action {
+ opacity: 1 !important;
+ color: hsl(0, 100%, 50%);
+ font-weight: bold;
+ }
}
.star_container {
@@ -957,7 +961,9 @@ td.pointer {
border: none;
&:hover .message_controls,
- &:focus-within .message_controls {
+ &:focus-within .message_controls,
+ &:hover .message_failed,
+ &:focus-within .message_failed {
.empty-star:hover {
cursor: pointer;
}
diff --git a/static/templates/message_controls.hbs b/static/templates/message_controls.hbs
index c8cbcc928e1..c9d4b8d9d94 100644
--- a/static/templates/message_controls.hbs
+++ b/static/templates/message_controls.hbs
@@ -15,9 +15,14 @@
</div>
{{/unless}}
- <div class="message_failed message_control_button {{#unless msg.failed_request}}notvisible{{/unless}}">
- <i class="fa fa-refresh refresh-failed-message tippy-zulip-tooltip" data-tippy-content="{{t 'Retry' }}" aria-label="{{t 'Retry' }}" role="button" tabindex="0"></i>
- <i class="fa fa-times-circle remove-failed-message tippy-zulip-tooltip" data-tippy-content="{{t 'Cancel' }}" aria-label="{{t 'Cancel' }}" role="button" tabindex="0"></i>
+ <div class="message_failed {{#unless msg.failed_request}}notvisible{{/unless}}">
+ <div class="message_control_button failed_message_action" data-tippy-content="{{t 'Retry' }}">
+ <i class="fa fa-refresh refresh-failed-message" aria-label="{{t 'Retry' }}" role="button" tabindex="0"></i>
+ </div>
+
+ <div class="message_control_button failed_message_action" data-tippy-content="{{t 'Cancel' }}">
+ <i class="fa fa-times-circle remove-failed-message" aria-label="{{t 'Cancel' }}" role="button" tabindex="0"></i>
+ </div>
</div>
{{#unless msg/locally_echoed}}