Chatwoot/app/javascript/widget/components/AgentTypingBubble.vue
Pranav Raj S 7bb8186e43
chore: Update self-closing tag eslint config (#4826)
* chore: Fix self-closing tag issues

* Fix merge conflicts

Co-authored-by: Fayaz Ahmed <15716057+fayazara@users.noreply.github.com>
2022-06-10 19:29:52 +05:30

46 lines
1 KiB
Vue

<template>
<div class="agent-message-wrap">
<div class="agent-message">
<div class="avatar-wrap" />
<div class="message-wrap">
<div
class="typing-bubble chat-bubble agent"
:class="$dm('bg-white', 'dark:bg-slate-50')"
>
<img
src="~widget/assets/images/typing.gif"
alt="Agent is typing a message"
/>
</div>
</div>
</div>
</div>
</template>
<script>
import darkModeMixing from 'widget/mixins/darkModeMixin.js';
export default {
name: 'AgentTypingBubble',
mixins: [darkModeMixing],
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import '~widget/assets/scss/variables.scss';
.agent-message-wrap {
position: sticky;
bottom: $space-smaller;
}
.typing-bubble {
max-width: $space-normal * 2.4;
padding: $space-small;
border-bottom-left-radius: $space-two;
border-top-left-radius: $space-small;
img {
width: 100%;
}
}
</style>