fix(atoms): fix max-height bug for the Booker component (#15195)

This commit is contained in:
Olga Stogova
2024-05-24 13:15:04 +00:00
committed by GitHub
parent 58e6f18594
commit 1174cb0d8e
+2 -8
View File
@@ -322,13 +322,7 @@ const BookerComponent = ({
)}
</BookerSection>
)}
<StickyOnDesktop
key="meta"
className={classNames(
"relative z-10 flex [grid-area:meta]",
// Important: In Embed if we make min-height:100vh, it will cause the height to continuously keep on increasing
layout !== BookerLayouts.MONTH_VIEW && !isEmbed && "sm:min-h-screen"
)}>
<StickyOnDesktop key="meta" className={classNames("relative z-10 flex [grid-area:meta]")}>
<BookerSection
area="meta"
className="max-w-screen flex w-full flex-col md:w-[var(--booker-meta-width)]">
@@ -353,7 +347,7 @@ const BookerComponent = ({
/>
{layout !== BookerLayouts.MONTH_VIEW &&
!(layout === "mobile" && bookerState === "booking") && (
<div className="mt-auto px-5 py-3 ">
<div className="mt-auto px-5 py-3">
<DatePicker event={event} schedule={schedule} scrollToTimeSlots={scrollToTimeSlots} />
</div>
)}