Next.js Discord

Discord Forum

CLS issue for ssr pages

Unanswered
Atlantic herring posted this in #help-forum
Open in Discord
Atlantic herringOP
Hi folk,
I'm experiencing a major layout shift on my SSR pages because media query styles are applied client-side. How can I apply these media queries server-side?
@media (min-width: ${BREAKPOINTS.md}) and (orientation: portrait) { max-height: 85%; margin: auto; background-color: blue; }

0 Replies