Skip to content

Commit

Permalink
Merge pull request #1781 from iFixit/Vulcan--add-html-image-dimensions
Browse files Browse the repository at this point in the history
Vulcan: Add html image dimensions for lighthouse
  • Loading branch information
deltuh-vee authored Jun 28, 2023
2 parents 37478d3 + f96b134 commit d920ace
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 5 additions & 3 deletions frontend/templates/troubleshooting/Problem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ export default function ProblemCard({ problem }: { problem: Problem }) {
>
<Image
boxSize="48px"
htmlWidth={48}
htmlHeight={48}
objectFit="cover"
src={imageUrl}
alt=""
outline="1px solid"
outlineColor="gray.300"
borderRadius="4px"
borderColor="gray.300"
borderWidth="1px"
borderStyle="solid"
loading="lazy"
/>
<Stack
justify="center"
Expand Down
9 changes: 4 additions & 5 deletions frontend/templates/troubleshooting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,12 @@ const Wiki: NextPageWithLayout<{
onClick={onOpen}
cursor="pointer"
alt={title}
maxWidth="120px"
minWidth="120px"
minHeight="90.5px"
htmlWidth={120}
htmlHeight={90}
objectFit="contain"
borderRadius="4px"
border="1px solid"
borderColor="gray.300"
outline="1px solid"
outlineColor="gray.300"
marginRight="12px"
display={{ base: 'none', sm: 'block' }}
/>
Expand Down

2 comments on commit d920ace

@vercel
Copy link

@vercel vercel bot commented on d920ace Jun 28, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

react-commerce – ./frontend

react-commerce-ifixit.vercel.app
react-commerce-git-main-ifixit.vercel.app
react-commerce.vercel.app

@vercel
Copy link

@vercel vercel bot commented on d920ace Jun 28, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

react-commerce-prod – ./frontend

react-commerce-prod-git-main-ifixit.vercel.app
react-commerce-prod.vercel.app
react-commerce-prod-ifixit.vercel.app

Please sign in to comment.