fix empty spaces again

This commit is contained in:
Henry Jameson 2021-06-08 13:42:16 +03:00
parent 9ea370033a
commit 73127f0e25
2 changed files with 5 additions and 4 deletions

View file

@ -3,7 +3,6 @@
white-space: normal; white-space: normal;
display: inline-block; display: inline-block;
color: var(--link); color: var(--link);
margin-right: 0.25em;
& .new, & .new,
& .original { & .original {
@ -12,7 +11,7 @@
} }
.original { .original {
opacity: 0.5; margin-right: 0.25em;
} }
.full { .full {
@ -39,6 +38,8 @@
} }
.new { .new {
margin-right: 0.25em;
&.-you { &.-you {
& .shortName, & .shortName,
& .full { & .full {

View file

@ -46,8 +46,8 @@ export default Vue.component('RichContent', {
const processItem = (item) => { const processItem = (item) => {
// Handle text noes - just add emoji // Handle text noes - just add emoji
if (typeof item === 'string') { if (typeof item === 'string') {
const emptyText = item.trim() const emptyText = item.trim() === ''
if (!emptyText) { if (emptyText) {
return encounteredText ? item : item.trim() return encounteredText ? item : item.trim()
} }
let unescapedItem = unescape(item) let unescapedItem = unescape(item)