Skip to content

Commit

Permalink
updated rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
BabyElias committed Aug 21, 2024
1 parent 71bd3ab commit f960a47
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/KTable/KTableGridItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@
};
},
textAlign() {
return this.dataType === DATA_TYPE_NUMERIC ? 'right' : 'left';
const alignLtr = this.dataType === DATA_TYPE_NUMERIC ? 'right' : 'left';
if (this.isRtl && alignLtr === 'right') {
return 'left';
}
if (this.isRtl && alignLtr === 'left') {
return 'right';
}
return alignLtr;
},
},
methods: {
Expand Down

0 comments on commit f960a47

Please sign in to comment.