mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-03 11:33:55 +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
25 lines
556 B
Vue
25 lines
556 B
Vue
<script>
|
|
import IframeLoader from 'shared/components/IframeLoader.vue';
|
|
import { getLanguageDirection } from 'dashboard/components/widgets/conversation/advancedFilterItems/languages';
|
|
|
|
export default {
|
|
name: 'ArticleViewer',
|
|
components: {
|
|
IframeLoader,
|
|
},
|
|
computed: {
|
|
isRTL() {
|
|
return this.$root.$i18n.locale
|
|
? getLanguageDirection(this.$root.$i18n.locale)
|
|
: false;
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div class="bg-white h-full">
|
|
<IframeLoader :url="$route.query.link" :is-rtl="isRTL" />
|
|
</div>
|
|
</template>
|