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;
display: inline-block;
color: var(--link);
margin-right: 0.25em;
& .new,
& .original {
@ -12,7 +11,7 @@
}
.original {
opacity: 0.5;
margin-right: 0.25em;
}
.full {
@ -39,6 +38,8 @@
}
.new {
margin-right: 0.25em;
&.-you {
& .shortName,
& .full {

View file

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