message_body: Remove link from message time when locally echoed.

Fixes #25069

Since the locally echoed link of message doesn't work, it is
better to remove it.
This commit is contained in:
Aman Agrawal
2023-04-15 12:17:58 +00:00
committed by Tim Abbott
parent 2c83efc6b4
commit fbb2967ff0
2 changed files with 4 additions and 1 deletions

View File

@@ -281,10 +281,13 @@ $time_column_max_width: 150px;
/* Locally echoed messages. */
&.locally-echoed .message_time {
opacity: 0;
/* Don't show pointer when message_time doesn't has a link. */
cursor: default;
}
/* Show the spinner only for messages that are still locally echoed. */
&.locally-echoed .slow-send-spinner {
display: unset !important;
cursor: default;
}
}

View File

@@ -24,7 +24,7 @@
<span class="alert-msg"></span>
<a href="{{ msg/url }}" class="message_time{{#if status_message}} status-time{{/if}}">
<a {{#unless msg/locally_echoed}}href="{{ msg/url }}"{{/unless}} class="message_time{{#if status_message}} status-time{{/if}}">
{{#unless include_sender}}
<span class="copy-paste-text">&nbsp;</span>
{{/unless}}