From 3be1dbb0395a67c4d5a76dc7d50f3549f485536f Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 12 May 2022 19:02:37 +0800 Subject: [PATCH] feat: add rtl to body class for rtl lang --- packages/nc-gui/components/utils/language.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nc-gui/components/utils/language.vue b/packages/nc-gui/components/utils/language.vue index b921431e75..4664a93bbc 100644 --- a/packages/nc-gui/components/utils/language.vue +++ b/packages/nc-gui/components/utils/language.vue @@ -90,6 +90,7 @@ export default { }, methods: { applyDirection() { + document.body.classList.add(this.isRtlLang() ? "rtl" : "ltr"); document.body.style.direction = this.isRtlLang() ? "rtl" : "ltr"; }, isRtlLang() {