Browse Source

feat: add rtl to body class for rtl lang

pull/2028/head
Wing-Kam Wong 3 years ago
parent
commit
3be1dbb039
  1. 1
      packages/nc-gui/components/utils/language.vue

1
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() {

Loading…
Cancel
Save