mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
Cleanup single message template moving CSS rules for box shadow of a private message stream inside stylesheets. For any messagebox inside of a `.private-message` element, the box shadow is set using the class. In cases of normal streams, the box shadow is set using inline style since we cannot have different classes for each color. Changes made in drafts.scss are to keep the current style of not having the left border. Setting style using classes, this rule had to be overridden.
15 lines
1.0 KiB
Handlebars
15 lines
1.0 KiB
Handlebars
<div zid="{{msg/id}}" id="{{table_name}}{{msg/id}}"
|
|
class="message_row{{^msg/is_stream}} private-message{{/msg/is_stream}}{{#include_sender}} include-sender{{/include_sender}}{{#contains_mention}} mention{{/contains_mention}}{{#include_footer}} last_message{{/include_footer}}{{#msg.unread}} unread{{/msg.unread}} {{#if msg.locally_echoed}}local{{/if}} selectable_row"
|
|
role="listitem">
|
|
<div class="unread_marker"><div class="unread-marker-fill"></div></div>
|
|
{{#if want_date_divider}}
|
|
<div class="date_row no-select" {{#if msg/is_stream}}style="box-shadow: inset 2px 0px 0px 0px {{background_color}}, -1px 0px 0px 0px {{background_color}};"{{/if}}>{{{date_divider_html}}}</div>
|
|
{{/if}}
|
|
<div class="messagebox {{#if next_is_same_sender}}next_is_same_sender{{/if}}"
|
|
{{#if msg/is_stream}}style="box-shadow: inset 2px 0px 0px 0px {{background_color}}, -1px 0px 0px 0px {{background_color}};"{{/if}}>
|
|
<div class="messagebox-content">
|
|
{{partial "message_body"}}
|
|
</div>
|
|
</div>
|
|
</div>
|