mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
48 lines
1.0 KiB
Vue
48 lines
1.0 KiB
Vue
<script>
|
|
import { useDarkMode } from 'widget/composables/useDarkMode';
|
|
export default {
|
|
name: 'AgentTypingBubble',
|
|
setup() {
|
|
const { getThemeClass } = useDarkMode();
|
|
return { getThemeClass };
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div class="agent-message-wrap">
|
|
<div class="agent-message">
|
|
<div class="avatar-wrap" />
|
|
<div class="message-wrap mt-2">
|
|
<div
|
|
class="typing-bubble chat-bubble agent"
|
|
:class="getThemeClass('bg-white', 'dark:bg-slate-700')"
|
|
>
|
|
<img src="assets/images/typing.gif" alt="Agent is typing a message" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<!-- 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>
|