|
|
@ -2,8 +2,8 @@
|
|
|
|
<div class="reply">
|
|
|
|
<div class="reply">
|
|
|
|
<span class="username">{{calcUserName(event.sender)}}</span><br>
|
|
|
|
<span class="username">{{calcUserName(event.sender)}}</span><br>
|
|
|
|
<span v-if="event.type==='m.room.message'">
|
|
|
|
<span v-if="event.type==='m.room.message'">
|
|
|
|
<span v-if="event.content.msgtype==='m.text'" v-html="parseMessage(event.content.body).substr(0,200)"/>
|
|
|
|
<span v-if="event.content.msgtype==='m.text'" v-html="parseMessage(event.content.body)"/>
|
|
|
|
<span v-else-if="event.content.msgtype==='m.notice'" class="italic" v-html="parseMessage(event.content.body).substr(0,200)"/>
|
|
|
|
<span v-else-if="event.content.msgtype==='m.notice'" class="italic" v-html="parseMessage(event.content.body)"/>
|
|
|
|
<span v-else>
|
|
|
|
<span v-else>
|
|
|
|
<span class="italic">{{event.content.msgtype}}</span><br>
|
|
|
|
<span class="italic">{{event.content.msgtype}}</span><br>
|
|
|
|
<span>{{event.content.body}}</span>
|
|
|
|
<span>{{event.content.body}}</span>
|
|
|
@ -34,6 +34,11 @@ export default {
|
|
|
|
border-left: 2px solid #fff;
|
|
|
|
border-left: 2px solid #fff;
|
|
|
|
padding-left: 0.5rem;
|
|
|
|
padding-left: 0.5rem;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
|
|
|
-webkit-line-clamp: 6;
|
|
|
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
.username{
|
|
|
|
.username{
|
|
|
|
font-weight: bold;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|