Skip to content
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

canvas css problem #9

Open
color-me opened this issue Sep 23, 2024 · 0 comments
Open

canvas css problem #9

color-me opened this issue Sep 23, 2024 · 0 comments

Comments

@color-me
Copy link

The 'react-tiff/dist/index.css' file in your library, The CSS rules for canvas, specifically max-width and max-height, are affecting all canvas elements globally in our system. This is causing unintended side effects.
canvas { max-width: 1024px; width: -moz-fit-content; width: fit-content; height: 100%; max-height: 700px; -o-object-fit: contain; object-fit: contain; }
Would it be possible to modify these styles so they only apply locally to the components in your library, rather than affecting all canvas elements globally? This would prevent conflicts with other canvas elements in our application.

Thank you for your consideration and assistance with this matter.

vite v3.1.0, React v18.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant