Scheduling infrastructure for absolutely everyone.
[CAL-1103] mobile /event-type edit - Move the "Hide from profile" toggle into the dropdown (#7297)
GitStart-Cal.com676254e96be1
diff --git a/apps/web/components/eventtype/EventTypeSingleLayout.tsx b/apps/web/components/eventtype/EventTypeSingleLayout.tsxindex f2916939656..38e22efcc73 100644--- a/apps/web/components/eventtype/EventTypeSingleLayout.tsx+++ b/apps/web/components/eventtype/EventTypeSingleLayout.tsx@@ -197,7 +197,7 @@ function EventTypeSingleLayout({heading={eventType.title}CTA={<div className="flex items-center justify-end">- <div className="hidden items-center rounded-md px-2 sm:flex sm:hover:bg-gray-100">+ <div className="hidden items-center rounded-md px-2 sm:hover:bg-gray-100 lg:flex"><Skeletonas={Label}htmlFor="hiddenSwitch"@@ -206,7 +206,7 @@ function EventTypeSingleLayout({</Skeleton><Switchid="hiddenSwitch"- defaultChecked={formMethods.getValues("hidden")}+ checked={formMethods.watch("hidden")}onCheckedChange={(e) => {formMethods.setValue("hidden", e);}}@@ -261,7 +261,7 @@ function EventTypeSingleLayout({<DropdownMenuTrigger asChild><Button className="lg:hidden" StartIcon={FiMoreHorizontal} variant="icon" color="secondary" /></DropdownMenuTrigger>- <DropdownMenuContent>+ <DropdownMenuContent style={{ minWidth: "200px" }}><DropdownMenuItem className="focus:ring-gray-100"><DropdownItemtarget="_blank"@@ -293,17 +293,17 @@ function EventTypeSingleLayout({{t("delete")}</DropdownItem></DropdownMenuItem>- <DropdownMenuSeparator className="block sm:hidden" />- <div className="flex items-center rounded-md py-1.5 px-4 sm:hidden sm:hover:bg-gray-100">+ <DropdownMenuSeparator />+ <div className="flex h-9 flex-row items-center justify-between py-2 px-4 sm:hover:bg-gray-100"><Skeletonas={Label}htmlFor="hiddenSwitch"- className="mt-2 inline cursor-pointer self-center pr-2 sm:hidden">+ className="mt-2 inline cursor-pointer self-center pr-2 ">{t("hide_from_profile")}</Skeleton><Switchid="hiddenSwitch"- defaultChecked={formMethods.getValues("hidden")}+ checked={formMethods.watch("hidden")}onCheckedChange={(e) => {formMethods.setValue("hidden", e);}}diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsxindex 54e9a3084f1..d77507738bf 100644--- a/packages/features/shell/Shell.tsx+++ b/packages/features/shell/Shell.tsx@@ -844,7 +844,7 @@ function MainContainer({<main className="relative z-0 flex-1 bg-white focus:outline-none">{/* show top navigation for md and smaller (tablet and phones) */}{TopNavContainerProp}- <div className="max-w-full px-4 md:py-8 lg:px-12">+ <div className="max-w-full py-4 px-4 md:py-8 lg:px-12"><ErrorBoundary>{!props.withoutMain ? <ShellMain {...props}>{props.children}</ShellMain> : props.children}</ErrorBoundary>