Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Large padding on small screens for embedded booking widgets (#15463)

Rushikesh226686d4dd88
diff --git a/apps/web/modules/users/views/users-public-view.tsx b/apps/web/modules/users/views/users-public-view.tsx
index fa78c86c1c0..742c128ea1d 100644
--- a/apps/web/modules/users/views/users-public-view.tsx
+++ b/apps/web/modules/users/views/users-public-view.tsx
@@ -14,7 +14,6 @@ import {
import { getOrgFullOrigin } from "@calcom/features/ee/organizations/lib/orgDomains";
import { EventTypeDescriptionLazy as EventTypeDescription } from "@calcom/features/eventtypes/components";
import EmptyPage from "@calcom/features/eventtypes/components/EmptyPage";
-import { useLocale } from "@calcom/lib/hooks/useLocale";
import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery";
import useTheme from "@calcom/lib/hooks/useTheme";
import { HeadSeo, Icon, UnpublishedEntity, UserAvatar } from "@calcom/ui";
@@ -26,7 +25,6 @@ export function UserPage(props: InferGetServerSidePropsType<typeof getServerSide
const [user] = users; //To be used when we only have a single user, not dynamic group
useTheme(profile.theme);
- const { t } = useLocale();
const isBioEmpty = !user.bio || !user.bio.replace("<p><br></p>", "").length;
@@ -52,7 +50,7 @@ export function UserPage(props: InferGetServerSidePropsType<typeof getServerSide
}, [telemetry, router.asPath]); */
if (entity.considerUnpublished) {
return (
- <div className="flex h-full min-h-[100dvh] items-center justify-center">
+ <div className="flex h-full min-h-[calc(100dvh)] items-center justify-center">
<UnpublishedEntity {...entity} />
</div>
);
@@ -81,7 +79,7 @@ export function UserPage(props: InferGetServerSidePropsType<typeof getServerSide
<main
className={classNames(
shouldAlignCentrally ? "mx-auto" : "",
- isEmbed ? "border-booker border-booker-width bg-default rounded-md border" : "",
+ isEmbed ? "border-booker border-booker-width bg-default rounded-md" : "",
"max-w-3xl px-4 py-24"
)}>
<div className="mb-8 text-center">
diff --git a/apps/web/pages/team/[slug].tsx b/apps/web/pages/team/[slug].tsx
index ba1c47bb7c0..517910c910d 100644
--- a/apps/web/pages/team/[slug].tsx
+++ b/apps/web/pages/team/[slug].tsx
@@ -65,7 +65,7 @@ function TeamPage({
// Show unpublished state for parent Organization itself, if the team is a subteam(team.parent is NOT NULL)
const slugPropertyName = team.parent || team.isOrganization ? "orgSlug" : "teamSlug";
return (
- <div className="flex h-full min-h-[100dvh] items-center justify-center">
+ <div className="flex h-full min-h-[calc(100dvh)] items-center justify-center">
<UnpublishedEntity
{...{ [slugPropertyName]: team.parent ? parentSlug : teamSlug }}
logoUrl={team.parent?.logoUrl || team.logoUrl}