new session + blue dots
This commit is contained in:
parent
8fe1679acc
commit
bd9d3aa612
3 changed files with 42 additions and 1 deletions
|
|
@ -18,6 +18,8 @@ const Bubble =
|
||||||
template: `
|
template: `
|
||||||
<div :class="'bubble ' + modifier + '-bubble ' + modifier +'-'+ child">
|
<div :class="'bubble ' + modifier + '-bubble ' + modifier +'-'+ child">
|
||||||
|
|
||||||
|
<small class="bubble-notify" v-if="modifier=='ai'"></small>
|
||||||
|
|
||||||
<p v-if="category=='text'">{{ text }}</p>
|
<p v-if="category=='text'">{{ text }}</p>
|
||||||
|
|
||||||
<p v-else-if="category=='audio'">{{ text }}</p>
|
<p v-else-if="category=='audio'">{{ text }}</p>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ const Message =
|
||||||
Context
|
Context
|
||||||
},
|
},
|
||||||
|
|
||||||
props: ["modifier", "content", "context", "avatar", "id"],
|
props: ["modifier", "content", "context", "avatar", "id", "seen"],
|
||||||
|
|
||||||
setup(props)
|
setup(props)
|
||||||
{
|
{
|
||||||
|
|
@ -18,6 +18,10 @@ const Message =
|
||||||
template: `
|
template: `
|
||||||
<div :id="id" :class="'message ' + modifier + '-message'">
|
<div :id="id" :class="'message ' + modifier + '-message'">
|
||||||
|
|
||||||
|
<div class="message-session" v-if="context=='Crimata AI'">
|
||||||
|
New Session
|
||||||
|
</div>
|
||||||
|
|
||||||
<Bubble
|
<Bubble
|
||||||
v-for="(c, index) in content"
|
v-for="(c, index) in content"
|
||||||
:category="c.category"
|
:category="c.category"
|
||||||
|
|
|
||||||
|
|
@ -410,6 +410,18 @@ html, body {
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.message-session {
|
||||||
|
width: 100vw;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-family: "SF Compact Display";
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #9B9B9B;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
.client-message {
|
.client-message {
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
|
|
@ -427,6 +439,29 @@ html, body {
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bubble-notify {
|
||||||
|
position: absolute;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #58D9FF;
|
||||||
|
top: -5px;
|
||||||
|
left: -5px;
|
||||||
|
border: 2px solid #EBEBEB;
|
||||||
|
transform: scale(0);
|
||||||
|
animation-name: bubble-notify-anim;
|
||||||
|
animation-duration: 5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes bubble-notify-anim {
|
||||||
|
0%, 90% {
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.ai-bubble {
|
.ai-bubble {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue