Created
December 23, 2020 23:57
-
-
Save donrestarone/9394f4560c02f4df8cf2f821a5fb3e1d to your computer and use it in GitHub Desktop.
css fix for react-zoom-pan-pinch rendering invisible pan area
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* fix not rendering on chrome/safari */ | |
.react-transform-component { | |
width: unset !important; | |
height: unset !important; | |
} | |
.react-transform-element { | |
width: unset !important; | |
height: unset !important; | |
} | |
img { | |
max-width: 100%; | |
max-height: 100%; | |
display: block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment