Skip to content

Scheduling infrastructure for absolutely everyone.

fixed avatargroup in mobile screens (#2498)

Syed Ali Shahbazccde0c20abc7
diff --git a/apps/web/pages/[user].tsx b/apps/web/pages/[user].tsx
index 43a84638699..1218612f712 100644
--- a/apps/web/pages/[user].tsx
+++ b/apps/web/pages/[user].tsx
@@ -84,11 +84,11 @@ export default function User(props: inferSSRProps<typeof getServerSideProps>) {
<h2 className="font-cal font-semibold text-neutral-900 dark:text-white">{type.title}</h2>
<EventTypeDescription className="text-sm" eventType={type} />
</div>
- <div className="mt-1">
+ <div className="mt-1 self-center">
<AvatarGroup
border="border-2 border-white"
truncateAfter={4}
- className="flex-shrink-0"
+ className="flex flex-shrink-0"
size={10}
items={props.users.map((user) => ({
alt: user.name || "",
diff --git a/apps/web/pages/team/[slug].tsx b/apps/web/pages/team/[slug].tsx
index 260cbc4d789..12013b3c692 100644
--- a/apps/web/pages/team/[slug].tsx
+++ b/apps/web/pages/team/[slug].tsx
@@ -60,11 +60,11 @@ function TeamPage({ team }: TeamPageProps) {
<h2 className="font-cal font-semibold text-neutral-900 dark:text-white">{type.title}</h2>
<EventTypeDescription className="text-sm" eventType={type} />
</div>
- <div className="mt-1">
+ <div className="mt-1 self-center">
<AvatarGroup
border="border-2 border-white dark:border-neutral-800"
truncateAfter={4}
- className="flex-shrink-0"
+ className="flex flex-shrink-0"
size={10}
items={type.users.map((user) => ({
alt: user.name || "",