From 354d57f3938c765f280fe129688219449965540e Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Mon, 10 Jul 2023 15:26:41 +0530 Subject: [PATCH] Add border in embed always (#10034) --- packages/features/bookings/Booker/Booker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx index d657fc9d49..4edf8889d3 100644 --- a/packages/features/bookings/Booker/Booker.tsx +++ b/packages/features/bookings/Booker/Booker.tsx @@ -148,7 +148,8 @@ const BookerComponent = ({ // Sets booker size css variables for the size of all the columns. ...getBookerSizeClassNames(layout, bookerState, hideEventTypeDetails), "bg-default dark:bg-muted grid max-w-full items-start dark:[color-scheme:dark] sm:transition-[width] sm:duration-300 sm:motion-reduce:transition-none md:flex-row", - layout === BookerLayouts.MONTH_VIEW && "border-subtle rounded-md border", + // We remove border only when the content covers entire viewport. Because in embed, it can almost never be the case that it covers entire viewport, we show the border there + (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",