Explicitly place * on actions in DOM

This commit is contained in:
Pavel Djundik 2018-09-25 18:43:46 +03:00
parent 99cda335ab
commit 7ba14fe4e3
3 changed files with 7 additions and 5 deletions

View File

@ -24,7 +24,7 @@
<template v-else-if="message.type === 'action'"> <template v-else-if="message.type === 'action'">
<span class="from" /> <span class="from" />
<span class="content"> <span class="content">
<Username :user="message.from" /> <ParsedMessage <span class="only-copy">* </span><Username :user="message.from" /> <ParsedMessage
:network="network" :network="network"
:message="message" /> :message="message" />
<LinkPreview <LinkPreview

View File

@ -229,6 +229,12 @@ kbd {
display: block; display: block;
} }
.only-copy {
font-size: 0;
opacity: 0;
width: 0;
}
/* Icons */ /* Icons */
#viewport .lt::before, #viewport .lt::before,

View File

@ -21,10 +21,6 @@ module.exports = function(chat) {
el.text(`<${el.text()}>`); el.text(`<${el.text()}>`);
}); });
$(documentFragment)
.find(".content > .user")
.prepend("* ");
div.id = "js-copy-hack"; div.id = "js-copy-hack";
div.appendChild(documentFragment); div.appendChild(documentFragment);
chat.appendChild(div); chat.appendChild(div);