Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

Fixed comment section from overflowing under tabs - mobile resolution (#700)

Amanuel Odicho89c9795859eb
diff --git a/apps/web/src/app/[locale]/challenge/_components/comments/index.tsx b/apps/web/src/app/[locale]/challenge/_components/comments/index.tsx
index 4755365f..e158d5f5 100644
--- a/apps/web/src/app/[locale]/challenge/_components/comments/index.tsx
+++ b/apps/web/src/app/[locale]/challenge/_components/comments/index.tsx
@@ -119,7 +119,7 @@ export function Comments({ preselectedCommentMetadata, rootId, type, expanded =
return (
<div
className={clsx(
- 'bg-background/90 dark:border-b-muted dark:bg-muted/90 absolute bottom-0 w-full overflow-hidden border-t border-zinc-300 backdrop-blur-sm duration-300 dark:border-zinc-700',
+ 'bg-background/90 dark:border-b-muted dark:bg-muted/90 absolute bottom-0 max-h-full w-full overflow-hidden border-t border-zinc-300 backdrop-blur-sm duration-300 dark:border-zinc-700',
{
'lg:border-t-none': showComments,
},