mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +00:00
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`
26 lines
770 B
Vue
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>
|