Skip to content

Commit 226686d

Browse files
fix: Large padding on small screens for embedded booking widgets (#15463)
* fix: large padding on small screens for embedded booking widgets * removed unused * cssConflict - 'border-booker-width' applies the same CSS properties as 'border'. --------- Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
1 parent 518ab82 commit 226686d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

apps/web/modules/users/views/users-public-view.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
import { getOrgFullOrigin } from "@calcom/features/ee/organizations/lib/orgDomains";
1515
import { EventTypeDescriptionLazy as EventTypeDescription } from "@calcom/features/eventtypes/components";
1616
import EmptyPage from "@calcom/features/eventtypes/components/EmptyPage";
17-
import { useLocale } from "@calcom/lib/hooks/useLocale";
1817
import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery";
1918
import useTheme from "@calcom/lib/hooks/useTheme";
2019
import { HeadSeo, Icon, UnpublishedEntity, UserAvatar } from "@calcom/ui";
@@ -26,7 +25,6 @@ export function UserPage(props: InferGetServerSidePropsType<typeof getServerSide
2625

2726
const [user] = users; //To be used when we only have a single user, not dynamic group
2827
useTheme(profile.theme);
29-
const { t } = useLocale();
3028

3129
const isBioEmpty = !user.bio || !user.bio.replace("<p><br></p>", "").length;
3230

@@ -52,7 +50,7 @@ export function UserPage(props: InferGetServerSidePropsType<typeof getServerSide
5250
}, [telemetry, router.asPath]); */
5351
if (entity.considerUnpublished) {
5452
return (
55-
<div className="flex h-full min-h-[100dvh] items-center justify-center">
53+
<div className="flex h-full min-h-[calc(100dvh)] items-center justify-center">
5654
<UnpublishedEntity {...entity} />
5755
</div>
5856
);
@@ -81,7 +79,7 @@ export function UserPage(props: InferGetServerSidePropsType<typeof getServerSide
8179
<main
8280
className={classNames(
8381
shouldAlignCentrally ? "mx-auto" : "",
84-
isEmbed ? "border-booker border-booker-width bg-default rounded-md border" : "",
82+
isEmbed ? "border-booker border-booker-width bg-default rounded-md" : "",
8583
"max-w-3xl px-4 py-24"
8684
)}>
8785
<div className="mb-8 text-center">

apps/web/pages/team/[slug].tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function TeamPage({
6565
// Show unpublished state for parent Organization itself, if the team is a subteam(team.parent is NOT NULL)
6666
const slugPropertyName = team.parent || team.isOrganization ? "orgSlug" : "teamSlug";
6767
return (
68-
<div className="flex h-full min-h-[100dvh] items-center justify-center">
68+
<div className="flex h-full min-h-[calc(100dvh)] items-center justify-center">
6969
<UnpublishedEntity
7070
{...{ [slugPropertyName]: team.parent ? parentSlug : teamSlug }}
7171
logoUrl={team.parent?.logoUrl || team.logoUrl}

0 commit comments

Comments
 (0)