parent
1b6671a6a7
commit
cf634ae483
3 changed files with 26 additions and 26 deletions
|
|
@ -215,7 +215,7 @@ $admin-fg: white;
|
||||||
}
|
}
|
||||||
position: relative;
|
position: relative;
|
||||||
.bubble {
|
.bubble {
|
||||||
background-color: #eeeeee;
|
background-color: #ededed;
|
||||||
border-radius: 0px 10px 10px 10px;
|
border-radius: 0px 10px 10px 10px;
|
||||||
[dir="rtl"] & {
|
[dir="rtl"] & {
|
||||||
border-radius: 10px 0px 10px 0px;
|
border-radius: 10px 0px 10px 0px;
|
||||||
|
|
@ -223,7 +223,7 @@ $admin-fg: white;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border-width: 1px !important;
|
border-width: 1px !important;
|
||||||
border-style: solid !important;
|
border-style: solid !important;
|
||||||
border-color: #eeeeee !important;
|
border-color: #ededed !important;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
max-width: 70%;
|
max-width: 70%;
|
||||||
|
|
@ -554,19 +554,19 @@ $admin-fg: white;
|
||||||
|
|
||||||
.quick-reaction-container {
|
.quick-reaction-container {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
position: relative;
|
||||||
top: -12px;
|
vertical-align: bottom;
|
||||||
left: 50px;
|
transform: translateX(-20px) translateX(-100%);
|
||||||
|
top: 18px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
background-color: #000000;
|
background-color: #f7f7f7;
|
||||||
border: 2px solid white;
|
border: 1px solid rgba(white, 0.9);
|
||||||
border-radius: 13px;
|
border-radius: 13px;
|
||||||
height: 26px;
|
height: 26px;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
padding: 0px 6px;
|
padding: 0px 6px;
|
||||||
.messageOut & {
|
.messageOut & {
|
||||||
left: unset;
|
transform: translateX(20px) translateX(100%);
|
||||||
right: 50px;
|
|
||||||
}
|
}
|
||||||
.quick-reaction {
|
.quick-reaction {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
@ -575,7 +575,7 @@ $admin-fg: white;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
&:hover {
|
&:hover {
|
||||||
border: 1px solid #888888;
|
//border: 1px solid #888888;
|
||||||
background-color: #e2e2e2;
|
background-color: #e2e2e2;
|
||||||
}
|
}
|
||||||
.quick-reaction-count {
|
.quick-reaction-count {
|
||||||
|
|
@ -584,7 +584,7 @@ $admin-fg: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.sent .quick-reaction-count {
|
.sent .quick-reaction-count {
|
||||||
color: white;
|
color: black;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
// background-color: palegreen;
|
// background-color: palegreen;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- BASE CLASS FOR INCOMING MESSAGE -->
|
<!-- BASE CLASS FOR INCOMING MESSAGE -->
|
||||||
<div :class="messageClasses">
|
<div :class="messageClasses">
|
||||||
|
<div v-if="showSenderAndTime" class="senderAndTime">
|
||||||
|
<div class="sender">{{ messageEventDisplayName(event) }}</div>
|
||||||
|
<div class="time">
|
||||||
|
{{ formatTime(event.event.origin_server_ts) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<v-avatar class="avatar" ref="avatar" size="32" color="#ededed" @click.stop="otherAvatarClicked($refs.avatar.$el)">
|
<v-avatar class="avatar" ref="avatar" size="32" color="#ededed" @click.stop="otherAvatarClicked($refs.avatar.$el)">
|
||||||
<img v-if="messageEventAvatar(event)" :src="messageEventAvatar(event)" />
|
<img v-if="messageEventAvatar(event)" :src="messageEventAvatar(event)" />
|
||||||
<span v-else class="white--text headline">{{
|
<span v-else class="white--text headline">{{
|
||||||
messageEventDisplayName(event).substring(0, 1).toUpperCase()
|
messageEventDisplayName(event).substring(0, 1).toUpperCase()
|
||||||
}}</span>
|
}}</span>
|
||||||
</v-avatar>
|
</v-avatar>
|
||||||
<QuickReactions :event="event" :reactions="reactions" />
|
|
||||||
<!-- SLOT FOR CONTENT -->
|
<!-- SLOT FOR CONTENT -->
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
<div class="op-button" ref="opbutton">
|
<div class="op-button" ref="opbutton">
|
||||||
|
|
@ -15,12 +20,7 @@
|
||||||
><v-icon>more_vert</v-icon></v-btn
|
><v-icon>more_vert</v-icon></v-btn
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="showSenderAndTime" class="senderAndTime">
|
<QuickReactions :event="event" :reactions="reactions" />
|
||||||
<div class="sender">{{ messageEventDisplayName(event) }}</div>
|
|
||||||
<div class="time">
|
|
||||||
{{ formatTime(event.event.origin_server_ts) }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- BASE CLASS FOR OUTGOING MESSAGE -->
|
<!-- BASE CLASS FOR OUTGOING MESSAGE -->
|
||||||
<div class="messageOut">
|
<div class="messageOut">
|
||||||
|
<div class="senderAndTime">
|
||||||
|
<div class="time">
|
||||||
|
{{ formatTime(event.event.origin_server_ts) }}
|
||||||
|
</div>
|
||||||
|
<div class="status">{{ event.status }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<QuickReactions :event="event" :reactions="reactions" />
|
||||||
<div class="op-button" ref="opbutton">
|
<div class="op-button" ref="opbutton">
|
||||||
<v-btn icon @click.stop="showContextMenu($refs.opbutton)"
|
<v-btn icon @click.stop="showContextMenu($refs.opbutton)"
|
||||||
><v-icon>more_vert</v-icon></v-btn
|
><v-icon>more_vert</v-icon></v-btn
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<QuickReactions :event="event" :reactions="reactions" />
|
|
||||||
<!-- SLOT FOR CONTENT -->
|
<!-- SLOT FOR CONTENT -->
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
<v-avatar
|
<v-avatar
|
||||||
|
|
@ -18,13 +25,6 @@
|
||||||
<img v-if="userAvatar" :src="userAvatar" />
|
<img v-if="userAvatar" :src="userAvatar" />
|
||||||
<span v-else class="white--text headline">{{ userAvatarLetter }}</span>
|
<span v-else class="white--text headline">{{ userAvatarLetter }}</span>
|
||||||
</v-avatar>
|
</v-avatar>
|
||||||
<!-- <div class="sender">{{ $t('message.you') }}</div> -->
|
|
||||||
<div class="senderAndTime">
|
|
||||||
<div class="time">
|
|
||||||
{{ formatTime(event.event.origin_server_ts) }}
|
|
||||||
</div>
|
|
||||||
<div class="status">{{ event.status }}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue