fix(ui): correct next/prev arrow direction in RTL

This commit is contained in:
KerollesFathy 2026-04-06 07:56:53 +00:00
parent 118cb4490f
commit 23f6b8c26d

View file

@ -341,7 +341,7 @@ frappe.ui.form.Toolbar = class Toolbar {
// Navigate
if (!this.frm.is_new() && !this.frm.meta.issingle) {
this.page.add_action_icon(
"es-line-left-chevron",
frappe.utils.is_rtl() ? "es-line-right-chevron" : "es-line-left-chevron",
() => {
this.frm.navigate_records(1);
},
@ -349,7 +349,7 @@ frappe.ui.form.Toolbar = class Toolbar {
__("Previous Document")
);
this.page.add_action_icon(
"es-line-right-chevron",
frappe.utils.is_rtl() ? "es-line-left-chevron" : "es-line-right-chevron",
() => {
this.frm.navigate_records(0);
},