Preserve meeting metadata when duplicating and fix switch alignment in RTL

Update executive meeting duplication to maintain `isExternal` and `rowColor` properties, and adjust switch component's RTL translation for correct alignment.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: f7213345-78e8-4ed4-a72e-0e4b9bc6e00f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/ychh3tH
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
Replit Agent
2026-07-08 10:06:53 +00:00
parent f829e1fac6
commit c54a6972ec
3 changed files with 48 additions and 1 deletions
+6 -1
View File
@@ -17,7 +17,12 @@ const Switch = React.forwardRef<
>
<SwitchPrimitives.Thumb
className={cn(
"pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:ltr:translate-x-4 data-[state=checked]:rtl:-translate-x-4 data-[state=unchecked]:ltr:translate-x-0 data-[state=unchecked]:rtl:translate-x-4"
// #682: in RTL the flex container already places the resting
// (unchecked) thumb at the track's start edge, so unchecked must
// be translate-x-0 in BOTH directions. The old rtl:translate-x-4
// pushed the resting thumb sideways, making OFF look like ON in
// Arabic. Checked travel: +x in LTR, -x in RTL.
"pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0 data-[state=checked]:ltr:translate-x-4 data-[state=checked]:rtl:-translate-x-4"
)}
/>
</SwitchPrimitives.Root>