From 7d02d1bb2339fa7e2c670365c13e0b029571e3fe Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 10 Jul 2025 13:21:38 +0000 Subject: [PATCH] fix: improve layout in copy times popup (#22368) - Remove justify-between from checkbox labels to fix uneven padding - Use CheckboxField with descriptionAsLabel for consistent spacing - Add flex justify-end to button container for right alignment - Maintain existing keyboard navigation functionality Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Bailey --- .../schedules/components/Schedule.tsx | 81 +++++++++---------- 1 file changed, 38 insertions(+), 43 deletions(-) diff --git a/packages/features/schedules/components/Schedule.tsx b/packages/features/schedules/components/Schedule.tsx index 8972cb67a9..6d41f6aab7 100644 --- a/packages/features/schedules/components/Schedule.tsx +++ b/packages/features/schedules/components/Schedule.tsx @@ -556,60 +556,55 @@ const CopyTimes = ({

{t("copy_times_to")}

  1. - + { + if (e.target.checked) { + setSelected([0, 1, 2, 3, 4, 5, 6]); + } else if (!e.target.checked) { + setSelected([]); + } + }} + ref={(ref) => { + if (ref) { + itteratablesByKeyRef.current.push(ref as HTMLInputElement); + } + }} + />
  2. {weekdayNames(i18n.language, weekStart).map((weekday, num) => { const weekdayIndex = (num + weekStart) % 7; return (
  3. - + { + if (e.target.checked && !selected.includes(weekdayIndex)) { + setSelected(selected.concat([weekdayIndex])); + } else if (!e.target.checked && selected.includes(weekdayIndex)) { + setSelected(selected.filter((item) => item !== weekdayIndex)); + } + }} + ref={(ref) => { + if (ref && disabled !== weekdayIndex) { + itteratablesByKeyRef.current.push(ref as HTMLInputElement); + } + }} + />
  4. ); })}

-
+