From adb8686293004b2b17869f9e91a50f9e80c5180e Mon Sep 17 00:00:00 2001 From: xhzeem Date: Tue, 21 Jul 2026 23:08:06 +0300 Subject: [PATCH] fix(rtl): anchor floating menus with logical start/end instead of left/right Popovers and dropdown menus across the app (sub-address helper, calendar toolbar/color pickers, contact/template/attachment menus, rich text editor color and table pickers, unsubscribe confirmation, composer send menu) were anchored with physical `left-0`/`right-0`. In RTL locales those don't flip with the trigger, so the menu detaches from the button that opened it. Switched to Tailwind's logical `start-0`/`end-0` (and the matching `rounded-s-*`/`rounded-e-*` corners on hover-action overlays) so they mirror correctly for RTL locales (ar, he, fa) while staying identical in LTR. --- components/calendar/calendar-toolbar.tsx | 4 ++-- components/contacts/contact-detail.tsx | 2 +- components/contacts/contacts-sidebar.tsx | 2 +- components/email/email-composer.tsx | 2 +- components/email/email-viewer.tsx | 18 +++++++++--------- components/email/rich-text-editor.tsx | 4 ++-- components/email/unsubscribe-banner.tsx | 2 +- components/identity/sub-address-helper.tsx | 2 +- .../settings/calendar-management-settings.tsx | 2 +- components/settings/folder-settings.tsx | 2 +- components/templates/template-form.tsx | 2 +- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/components/calendar/calendar-toolbar.tsx b/components/calendar/calendar-toolbar.tsx index 0a129663..d26f8686 100644 --- a/components/calendar/calendar-toolbar.tsx +++ b/components/calendar/calendar-toolbar.tsx @@ -201,7 +201,7 @@ export function CalendarToolbar({ {showCalendarDropdown && ( -
+

{t("my_calendars")}

@@ -335,7 +335,7 @@ export function CalendarToolbar({ {showImportDropdown && ( -
+
{onImport && (