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 {
ripple(rippleContainer); ripple(rippleContainer);
} else { } else {
this.classList.add('bubble-beside-button'); 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) { if(!this.updated) {

4
src/scss/partials/_chatBubble.scss

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

Loading…
Cancel
Save