-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
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
Safari object-fit: cover #537
Comments
I'm struggling with Codesandbox on Safari so I cannot try it but adding See https://codesandbox.io/p/sandbox/staging-voice-forked-h7rffm?file=%2Fsrc%2Findex.tsx%3A10%2C12 |
thanks for the quick response, i dont have access to that sandbox |
It should be good now 🙂 |
great, i see you removed the cropSize prop which i hear causes more problems then solves. |
You can compute it based on the width and height of the container. |
Describe the bug
Hi I am having a problem with object-fit and translate. When zooming and moving the image to the left or right, this causes the image to be cut off from the edge of the container. This happens when it switches between the cropped image and the cropper component. It is happening consistently on Safari browser and rarely on Chrome.
Each image has an 'Edit' button that is used to conditionally render either the Image with css translated values (when not cropping) or the Cropper component (while cropping). For ease, the sandbox is using the same image but in production it would be a variety of image width/heights
To Reproduce
Screen.Recording.2024-05-13.at.19.44.45.1.mov
Expected behavior
Image fits into the container after being translated to match behaviour on chrome browser
The text was updated successfully, but these errors were encountered: