Skip to content

Commit

Permalink
replace width and height with fill property
Browse files Browse the repository at this point in the history
  • Loading branch information
GLEF1X committed Jul 18, 2023
1 parent 5f473cb commit c23fdc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions app/components/Blog/Latest.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ export function Latest({ blogPost }: LatestProps): JSX.Element {
className="absolute top-0 left-0 w-full h-full rounded-lg rounded-b-none lg:(rounded-l-lg rounded-r-none) object-cover select-none"
draggable={false}
src={blogPost.image}
// TODO width is selected arbitrary and incurs overhead costs
width={1700}
height={600}
fill
priority
/>
</div>
Expand Down
4 changes: 1 addition & 3 deletions app/components/Blog/Post.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ export function _Post({ blogPost, index }: PostProps): JSX.Element {
className="absolute top-0 left-0 w-full h-48 object-cover select-none"
draggable={false}
src={blogPost.image}
// TODO width is selected arbitrary and incurs overhead costs
width={1700}
height={600}
fill
priority
/>
</div>
Expand Down
3 changes: 1 addition & 2 deletions app/pages/blog/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ export default function BlogPost({ post }: BlogPostProps): JSX.Element {
className="absolute hidden lg:inline top-0 left-0 w-full h-auto max-h-64 lg:max-h-96 mb-8 rounded-3xl object-cover select-none shadow-xl default-transition"
draggable={false}
src={post.image}
width={1700}
height={900}
fill
/>
</div>

Expand Down

1 comment on commit c23fdc5

@vercel
Copy link

@vercel vercel bot commented on c23fdc5 Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.