Fixes the start and end time mobile view (#6057)
This commit is contained in:
1 parent
1671095c94
commit
692a84a86e
2 files changed
+63
-68
No files matched your search
@@ -51,7 +51,7 @@ const ScheduleDay = <TFieldValues extends FieldValues>({
|
||||
const watchDayRange = watch(name);
|
||||
|
||||
return (
|
||||
<div className="mb-1 flex w-full flex-col py-1 sm:flex-row">
|
||||
<div className="mb-1 flex w-full flex-col px-5 py-1 sm:flex-row sm:px-0">
|
||||
{/* Label & switch container */}
|
||||
<div className="flex h-11 items-center justify-between sm:w-32">
|
||||
<div>
|
||||
@@ -83,7 +83,6 @@ const ScheduleDay = <TFieldValues extends FieldValues>({
|
||||
<SkeletonText className="mt-2.5 ml-1 h-6 w-48" />
|
||||
)}
|
||||
</>
|
||||
<div className="my-2 h-[1px] w-full bg-gray-200 sm:hidden" />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -140,7 +139,7 @@ const Schedule = <
|
||||
const { i18n } = useLocale();
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="divide-y sm:divide-none">
|
||||
{/* First iterate for each day */}
|
||||
{weekdayNames(i18n.language, weekStart, "long").map((weekday, num) => {
|
||||
const weekdayIndex = (num + weekStart) % 7;
|
||||
@@ -155,7 +154,7 @@ const Schedule = <
|
||||
/>
|
||||
);
|
||||
})}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user