From 779113bb193152d86ff9b989d19e7f23e745d4f3 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Mon, 15 Jun 2026 16:05:56 +0330 Subject: [PATCH] =?UTF-8?q?fix(appointment):=20order=20calendar=20months?= =?UTF-8?q?=20RTL=20(=D8=AE=D8=B1=D8=AF=D8=A7=D8=AF=20right,=20=D8=AA?= =?UTF-8?q?=DB=8C=D8=B1=20left)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The two months rendered reversed (current month on the left). Pin the calendar row to dir=rtl and render the base month first so the current month sits on the right and the next month on the left, matching the design. Pin each month header to dir=ltr so the nav arrows stay on the expected outer edges regardless of the RTL flip. Co-Authored-By: Claude Opus 4.8 --- app/component/date/datePicker/index.js | 24 ++++++++++++------------ components/common/InlineJalaliMonth.js | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/component/date/datePicker/index.js b/app/component/date/datePicker/index.js index dde70e8..86f5e0d 100644 --- a/app/component/date/datePicker/index.js +++ b/app/component/date/datePicker/index.js @@ -42,18 +42,7 @@ function DatePicker({ setDate, disabledDates = [] }) { const secondMonth = moment(baseMonth).add(1, "jMonth"); return ( -
-
- setBaseMonth(moment(baseMonth).add(1, "jMonth"))} - onPrev={() => setBaseMonth(moment(baseMonth).subtract(1, "jMonth"))} - /> -
+
setBaseMonth(moment(baseMonth).add(1, "jMonth"))} />
+
+ setBaseMonth(moment(baseMonth).add(1, "jMonth"))} + onPrev={() => setBaseMonth(moment(baseMonth).subtract(1, "jMonth"))} + /> +
); } diff --git a/components/common/InlineJalaliMonth.js b/components/common/InlineJalaliMonth.js index 439bdb1..da33fe9 100644 --- a/components/common/InlineJalaliMonth.js +++ b/components/common/InlineJalaliMonth.js @@ -47,7 +47,7 @@ function InlineJalaliMonth({ return (
-
+