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 {
font-weight: normal;
}
&.date-separator {
&.date-separator,
&.separator {
height: 2em;
margin: 0;
position: relative;

View File

@ -6,7 +6,7 @@ import { renderAvatar } from './../templates/directives/avatar';
export default (o) => {
const i18n_new_messages = __('New messages');
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() }"
data-isodate="${o.time}"
data-msgid="${o.msgid}"