Files
chatwoot/app/javascript/dashboard/components-next/message/bubbles/Activity.vue
Shivam Mishra c19d70a6a0 fix: bubble UI issues (#10608)
This PR has fixes for the following issues

- Inconsistent spacing between meta and text in text bubble
- Activity bubble overflows for longer text (for now I have truncated
it, I'll work with @absurdiya on a better solution)
- Ugly lookinh gradient for expand button on email bubble
- Email bubble overflow issues and text rendering issues
- Alignment for error message
- Minute-wise grouping not working
- Link color should not be blue
- Use `gray-3` for bubble background instead of `gray-4`
2024-12-21 13:36:46 +05:30

26 lines
770 B
Vue

<script setup>
import { computed } from 'vue';
import { messageTimestamp } from 'shared/helpers/timeHelper';
import BaseBubble from './Base.vue';
import { useMessageContext } from '../provider.js';
const { content, createdAt } = useMessageContext();
const readableTime = computed(() =>
messageTimestamp(createdAt.value, 'LLL d, h:mm a')
);
</script>
<template>
<BaseBubble
class="px-2 py-0.5 !rounded-full flex items-center gap-2"
data-bubble-name="activity"
>
<span v-dompurify-html="content" :title="content" class="truncate" />
<div v-if="readableTime" class="w-px h-3 rounded-full bg-n-slate-7" />
<time class="text-n-slate-10 truncate flex-shrink" :title="readableTime">
{{ readableTime }}
</time>
</BaseBubble>
</template>