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:
Aman Agrawal 2023-01-19 08:55:13 +00:00 committed by Tim Abbott
parent 82aa15cb38
commit 863ec70955
2 changed files with 9 additions and 5 deletions

View File

@ -40,7 +40,9 @@
{{/if}}
</div>
{{else}}
{{> message_hidden_dialog}}
<div class="message_content rendered_markdown">
{{> message_hidden_dialog}}
</div>
{{/unless}}
{{/unless}}

View File

@ -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>