mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
This PR adds RTL support to the web widget for improved right-to-left language compatibility, updates colors, and cleans up code. Fixes https://linear.app/chatwoot/issue/CW-4089/rtl-issues-on-widget https://github.com/chatwoot/chatwoot/issues/9791 Other PR: https://github.com/chatwoot/chatwoot/pull/11016
50 lines
993 B
Vue
50 lines
993 B
Vue
<script>
|
|
import CardButton from 'shared/components/CardButton.vue';
|
|
|
|
export default {
|
|
components: {
|
|
CardButton,
|
|
},
|
|
props: {
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
description: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
mediaUrl: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
actions: {
|
|
type: Array,
|
|
default: () => [],
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
class="card-message chat-bubble agent bg-n-background dark:bg-n-solid-3 max-w-56 rounded-lg overflow-hidden"
|
|
>
|
|
<img
|
|
class="w-full object-contain max-h-[150px] rounded-[5px]"
|
|
:src="mediaUrl"
|
|
/>
|
|
<div class="card-body">
|
|
<h4
|
|
class="!text-base !font-medium !mt-1 !mb-1 !leading-[1.5] text-n-slate-12"
|
|
>
|
|
{{ title }}
|
|
</h4>
|
|
<p class="!mb-1 text-n-slate-11">
|
|
{{ description }}
|
|
</p>
|
|
<CardButton v-for="action in actions" :key="action.id" :action="action" />
|
|
</div>
|
|
</div>
|
|
</template>
|