fix: make quick list arrow left for rtl lang
This commit is contained in:
parent
9930dd5444
commit
6bb2cfe60a
1 changed files with 5 additions and 4 deletions
|
|
@ -158,10 +158,11 @@ export default class QuickListWidget extends Widget {
|
||||||
</div>
|
</div>
|
||||||
`).appendTo($quick_list_item);
|
`).appendTo($quick_list_item);
|
||||||
}
|
}
|
||||||
|
let icon_to_append = `<div class="right-arrow">${frappe.utils.icon("right", "xs")}</div>`;
|
||||||
$(`<div class="right-arrow">${frappe.utils.icon("right", "xs")}</div>`).appendTo(
|
if (frappe.utils.is_rtl(frappe.boot.lang)) {
|
||||||
$quick_list_item
|
icon_to_append = `<div class="left-arrow">${frappe.utils.icon("left", "xs")}</div>`;
|
||||||
);
|
}
|
||||||
|
$(icon_to_append).appendTo($quick_list_item);
|
||||||
|
|
||||||
$quick_list_item.click((e) => {
|
$quick_list_item.click((e) => {
|
||||||
if (e.ctrlKey || e.metaKey) {
|
if (e.ctrlKey || e.metaKey) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue