Skip to content

Fix media sizing with CSS resets#649

Merged
ValentinH merged 1 commit into
mainfrom
codex/fix-css-reset-crop-media
Jun 10, 2026
Merged

Fix media sizing with CSS resets#649
ValentinH merged 1 commit into
mainfrom
codex/fix-css-reset-crop-media

Conversation

@ValentinH

@ValentinH ValentinH commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Closes #608. Adds max-width: unset to crop media so global img/video reset rules from frameworks do not constrain wide images, and adds Cypress coverage for img, video { max-width: 100%; }. Tests: pnpm lint; pnpm unit; pnpm exec start-server-and-test "pnpm start" http://localhost:3001 "pnpm cy:run -- --spec cypress/integration/basic_spec.js"; pnpm build.

📦 Published PR as canary version: 6.0.1--canary.649.e8aa4d1.0

✨ Test out this PR locally via:

npm install react-easy-crop@6.0.1--canary.649.e8aa4d1.0
# or 
yarn add react-easy-crop@6.0.1--canary.649.e8aa4d1.0

@ValentinH ValentinH added the patch Increment the patch version when merged label Jun 10, 2026
@ValentinH ValentinH merged commit 85db235 into main Jun 10, 2026
4 checks passed
@ValentinH ValentinH deleted the codex/fix-css-reset-crop-media branch June 10, 2026 17:49
@github-actions

Copy link
Copy Markdown

🚀 PR was released in v6.0.1 🚀

@github-actions github-actions Bot added the released This issue/pull request has been released. label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSS reset from frameworks breaks wide image cropping

1 participant