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