react.dev
react.dev copied to clipboard
fix: remove height in CSS to make avatar resizable
In the page "Learn" / "JavaScript in JSX with Curly Braces" in the last challenge, we're told to check if our fix worked by "changing the value of imageSize to 'b'. The image should resize after your edit.". However, the height of the avatar is fixed to 90px in the CSS, so changing the size of the base image doesn't make any visual difference.
I removed the height
CSS attribute so that the exemple works as intended.
Size Changes
📦 Next.js Bundle Analysis
This analysis was generated by the next.js bundle analysis action 🤖
This PR introduced no changes to the javascript bundle 🙌