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
none234w 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
when i get rid of object fit it doesn't behave that way certainly
Zonni
Zonni4w 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
i am using sass @starting-style doesn't working with sass
none23
none234w 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