how to fix images adjusting after loading

i am running into a problem where the images adjust their size after the page loads i don't know what is causing this to happen any help ?
No description
5 Replies
none23
none233mo ago
Looks to me like the object-fit css property is being updated after the initial mount. Hard to say why without additional context
johnny  the fifth
johnny the fifthOP3mo ago
when i get rid of object fit it doesn't behave that way certainly
Zonni
Zonni3mo ago
You should read about @starting-style if this is only CSS issue, otherwise you need to fix some javascript code managing stylesheet
johnny  the fifth
johnny the fifthOP3mo ago
i am using sass @starting-style doesn't working with sass
none23
none233mo ago
I think your problem stems from styles being loaded too late. See if style={{ objectFit: ... }} fixes the issue
Want results from more Discord servers?
Add your server