Don't use date-separator CSS class for the new messages indicator

This commit is contained in:
JC Brand 2020-09-03 12:48:23 +02:00
parent c41bdac6c8
commit cb53c86711
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,8 @@
.mention--self { .mention--self {
font-weight: normal; font-weight: normal;
} }
&.date-separator { &.date-separator,
&.separator {
height: 2em; height: 2em;
margin: 0; margin: 0;
position: relative; position: relative;

View File

@ -6,7 +6,7 @@ import { renderAvatar } from './../templates/directives/avatar';
export default (o) => { export default (o) => {
const i18n_new_messages = __('New messages'); const i18n_new_messages = __('New messages');
return html` return html`
${ o.is_first_unread ? html`<div class="message date-separator"><hr class="separator"><span class="separator-text">${ i18n_new_messages }</span></div>` : '' } ${ o.is_first_unread ? html`<div class="message separator"><hr class="separator"><span class="separator-text">${ i18n_new_messages }</span></div>` : '' }
<div class="message chat-msg ${ o.getExtraMessageClasses() }" <div class="message chat-msg ${ o.getExtraMessageClasses() }"
data-isodate="${o.time}" data-isodate="${o.time}"
data-msgid="${o.msgid}" data-msgid="${o.msgid}"