2020-05-04 17:37:56 +00:00
|
|
|
<template>
|
|
|
|
<div class="agent-message-wrap">
|
|
|
|
<div class="agent-message">
|
|
|
|
<div class="avatar-wrap"></div>
|
|
|
|
<div class="message-wrap">
|
2022-04-01 15:29:03 +00:00
|
|
|
<div
|
|
|
|
class="typing-bubble chat-bubble agent"
|
|
|
|
:class="$dm('bg-white', 'dark:bg-slate-50')"
|
|
|
|
>
|
2020-05-04 17:37:56 +00:00
|
|
|
<img
|
|
|
|
src="~widget/assets/images/typing.gif"
|
|
|
|
alt="Agent is typing a message"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-04-01 15:29:03 +00:00
|
|
|
import darkModeMixing from 'widget/mixins/darkModeMixin.js';
|
2020-05-04 17:37:56 +00:00
|
|
|
export default {
|
|
|
|
name: 'AgentTypingBubble',
|
2022-04-01 15:29:03 +00:00
|
|
|
mixins: [darkModeMixing],
|
2020-05-04 17:37:56 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import '~widget/assets/scss/variables.scss';
|
2021-07-02 09:58:32 +00:00
|
|
|
.agent-message-wrap {
|
|
|
|
position: sticky;
|
|
|
|
bottom: $space-smaller;
|
|
|
|
}
|
2020-05-04 17:37:56 +00:00
|
|
|
|
|
|
|
.typing-bubble {
|
2020-10-18 18:02:22 +00:00
|
|
|
max-width: $space-normal * 2.4;
|
|
|
|
padding: $space-small;
|
2020-05-04 17:37:56 +00:00
|
|
|
border-bottom-left-radius: $space-two;
|
|
|
|
border-top-left-radius: $space-small;
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|