From 23f6b8c26d5b2db722174acca81dcd19b1c0fe82 Mon Sep 17 00:00:00 2001 From: KerollesFathy Date: Mon, 6 Apr 2026 07:56:53 +0000 Subject: [PATCH] fix(ui): correct next/prev arrow direction in RTL --- frappe/public/js/frappe/form/toolbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/form/toolbar.js b/frappe/public/js/frappe/form/toolbar.js index ed6b86045a..7432b0fe2b 100644 --- a/frappe/public/js/frappe/form/toolbar.js +++ b/frappe/public/js/frappe/form/toolbar.js @@ -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); },