Browse Source

Fix empty message time css

master
Eduard Kuzmenko 4 years ago
parent
commit
1b4c7ec2c3
  1. 2
      src/components/chat/messageRender.ts
  2. 4
      src/scss/partials/_chatBubble.scss

2
src/components/chat/messageRender.ts

@ -136,7 +136,7 @@ class RepliesElement extends HTMLElement { @@ -136,7 +136,7 @@ class RepliesElement extends HTMLElement {
ripple(rippleContainer);
} else {
this.classList.add('bubble-beside-button');
this.innerHTML = `<span class="tgico-commentssticker"></span><span class="replies-beside-text">${formatNumber(replies.replies, 0) || ''}</span>`;
this.innerHTML = `<span class="tgico-commentssticker"></span><span class="replies-beside-text">${replies.replies ? formatNumber(replies.replies, 0) : ''}</span>`;
}
if(!this.updated) {

4
src/scss/partials/_chatBubble.scss

@ -1220,7 +1220,7 @@ $bubble-margin: .25rem; @@ -1220,7 +1220,7 @@ $bubble-margin: .25rem;
color: #fff;
display: flex;
align-items: center;
padding: 0 2.5px;
padding: 0 2.5px 0 4px;
line-height: 18px;
pointer-events: all; // show title
white-space: nowrap;
@ -1252,7 +1252,7 @@ $bubble-margin: .25rem; @@ -1252,7 +1252,7 @@ $bubble-margin: .25rem;
i {
font-size: 1.15rem;
margin-right: .4rem;
/* margin-left: .1rem; */
margin-left: 2px;
}
i.edited {

Loading…
Cancel
Save