Fix booker top margin embed (#10357)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2023-07-25 10:58:47 +01:00
1 parent 10bd332405
commit 47739a7636
6 files changed
+53 -26

No files matched your search

+1 -3
View File
@@ -183,9 +183,7 @@ const BookerComponent = ({
(layout === BookerLayouts.MONTH_VIEW || isEmbed) && "border-subtle rounded-md border",
!isEmbed && "sm:transition-[width] sm:duration-300",
isEmbed && layout === BookerLayouts.MONTH_VIEW && "border-booker sm:border-booker-width",
!isEmbed && layout === BookerLayouts.MONTH_VIEW && "border-subtle",
// We don't want any margins for Embed. Any margin needed should be added by Embed user.
layout === BookerLayouts.MONTH_VIEW && isEmbed && "mt-0"
!isEmbed && layout === BookerLayouts.MONTH_VIEW && "border-subtle"
)}>
<AnimatePresence>
<BookerSection
@@ -0,0 +1,6 @@
import { classNames } from "@calcom/lib";
export function getBookerWrapperClasses({ isEmbed }: { isEmbed: boolean }) {
// We don't want any margins for Embed. Any margin needed should be added by Embed user.
return classNames("flex h-full items-center justify-center", !isEmbed && "min-h-[100dvh]");
}