min-width and min-height are set unexpectedly #64
Unanswered
FabianEgartner
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am currently facing the issue that the min-width and min-height is set automatically when using remix-image, even though I did not specify any min-value in my code. Here my code that results in this issue:
(for the styling I am using Tailwind CSS)
image.tsx (created in /app/routes/api/image.tsx as suggested in the documentation: https://remix-image.mcfarl.in/docs/tutorial-basics/create-loader)
The values for the Teaser-component that renders the remix-image:
The Teaser-component:
When I start the application and open the developer tools of google-chrome, I can see that a min-width of 1320px and a min-height of 570px is set automatically. Why is this the case?
Furthermore, regarding the specified sizes of the responsive array of Image: With the first size-object, I want that width 320 and height 300 are applied as the ratio for the image, until the screen-width hits 768, Afterwards, I want that the second size-object with width 1320 and height: 570 are applied. Can I achieve this behaviour with my code? If not, how can I achieve this behaviour?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions