We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Zoom component:
import Zoom from 'react-medium-image-zoom'; import 'react-medium-image-zoom/dist/styles.css'; function App() { return ( <div style={{ margin: '20px', height: '100px', width: '100px', border: '2px solid red', }} > <Zoom> <img src="https://cdn.artiffuse.ai/generations/images/mu8ADtP5h9V0KcIHFoUEA_576x1024_20250122_230143_raw.webp" style={{ maxWidth: '100%', maxHeight: '100%', objectFit: 'contain', }} /> </Zoom> </div> ); } export default App;
image height overflow:
No Zoom component, the image fit the div size:
online reproduce: https://stackblitz.com/edit/vitejs-vite-hgyeoboh?file=src%2FApp.tsx
The text was updated successfully, but these errors were encountered:
Hi, I'll check this out when I get some time! Thanks for the report.
Sorry, something went wrong.
rpearce
No branches or pull requests
With Zoom component:
image height overflow:
No Zoom component, the image fit the div size:
online reproduce: https://stackblitz.com/edit/vitejs-vite-hgyeoboh?file=src%2FApp.tsx
The text was updated successfully, but these errors were encountered: