mirror of https://github.com/zulip/zulip.git
message_body: Structure hidden message similar to a normal message.
Messages sent by muted users are hidden. To make sure they are displayed properly, we provide them a HTML structure similar to that of a normal message so that any CSS applied to a normal message also applied to it. This fixes message controls being misaligned in hidden message.
This commit is contained in:
parent
82aa15cb38
commit
863ec70955
|
@ -40,7 +40,9 @@
|
|||
{{/if}}
|
||||
</div>
|
||||
{{else}}
|
||||
{{> message_hidden_dialog}}
|
||||
<div class="message_content rendered_markdown">
|
||||
{{> message_hidden_dialog}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<em>
|
||||
{{#tr}}This message was hidden because you have muted the sender. {{/tr}}
|
||||
<a class="reveal_hidden_message">{{#tr}}Click here to reveal.{{/tr}}</a>
|
||||
</em>
|
||||
<p>
|
||||
<em>
|
||||
{{#tr}}This message was hidden because you have muted the sender. {{/tr}}
|
||||
<a class="reveal_hidden_message">{{#tr}}Click here to reveal.{{/tr}}</a>
|
||||
</em>
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue