Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@
},
methods: {
treeItemStyle(item) {
return this.nested ? { paddingLeft: `${item.level * 24}px` } : {};
const rule = this.$isRTL ? 'paddingRight' : 'paddingLeft';
return this.nested ? { [rule]: `${item.level * 24}px` } : {};
},
add(value) {
this.selected = [...this.selected, value];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
top: this.top,
maxHeight: this.menuHeight,
lazy: true,
contentClass: this.$isRTL ? 'forceRTLMenu' : '',
};
},
},
Expand Down Expand Up @@ -91,3 +92,16 @@
};

</script>
<style>

/* According to the documentation, Vuetify supposedly supports a `right` prop to position the menu
on the right side, but there isn't any code that actually does this. So when using an RTL
language, this class will be applied and these will get flipped, because our intention is
left:auto and right:0
*/
.forceRTLMenu {
left: 0 !important;
right: auto !important;
}

</style>