Skip to content

Commit

Permalink
Made the image responsive for the mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
raka334 committed Feb 28, 2024
1 parent 406a1a0 commit a639f00
Show file tree
Hide file tree
Showing 4 changed files with 4,154 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/NonOptimizedImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ type Props = {
alt: string;
width?: number;
height?: number;
layout?:string;
};

export default function NonOptimizedImage(props: Props) {
return <NextImage {...props} loader={customLoader} unoptimized={!props.width && !props.height} />;
return <NextImage {...props} loader={customLoader} unoptimized={!props.width && !props.height} layout={props.layout} />;
}
Loading

0 comments on commit a639f00

Please sign in to comment.