Skip to content

Commit

Permalink
Wrapper: remove flex-grow and h-full
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarrenechea committed Dec 18, 2023
1 parent e71c064 commit 6331999
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/layout/home/intro/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const HomeIntro: React.FC = () => {
style={{ backgroundColor }}
>
<HeroAnimation />
<Wrapper>
<Wrapper className="h-full">
<div className="relative z-10 m-auto flex h-full w-full max-w-5xl flex-col justify-between py-8 md:mb-48 md:mt-52 md:py-0">
<div className="lg:pr-80">
<motion.h1
Expand Down
6 changes: 4 additions & 2 deletions app/layout/wrapper/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import { cn } from 'utils/cn';

export interface WrapperProps {
children: ReactNode;
className?: string;
}

export const Wrapper: React.FC<WrapperProps> = ({ children }: WrapperProps) => {
export const Wrapper: React.FC<WrapperProps> = ({ children, className }: WrapperProps) => {
return (
<div
className={cn({
'mx-auto flex h-full w-full flex-grow flex-col px-10 md:container': true,
'mx-auto flex w-full flex-col px-10 md:container': true,
[className]: !!className,
})}
>
{children}
Expand Down

0 comments on commit 6331999

Please sign in to comment.