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'">
<span class="from" />
<span class="content">
<Username :user="message.from" /> <ParsedMessage
<span class="only-copy">* </span><Username :user="message.from" /> <ParsedMessage
:network="network"
:message="message" />
<LinkPreview

View File

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

View File

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