You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I am trying to create a masonry grid without any (or very little) layout shift. Is this possible with svelte-bricks. My current attempts always load a one-column layout which then shifts to adjust for the viewport width. Any tips?
The text was updated successfully, but these errors were encountered:
yeah, the layout shift in svelte-bricks is admittedly terrible. it needs JS to compute the number of columns based on the container width. i may be wrong but i think the only way to avoid that is a CSS-only solution (maybe this has become slightly easier now with CSS container queries). or delay rendering altogether until JS is ready. PRs for either of those would be welcome
Hey, I am trying to create a masonry grid without any (or very little) layout shift. Is this possible with
svelte-bricks
. My current attempts always load a one-column layout which then shifts to adjust for the viewport width. Any tips?The text was updated successfully, but these errors were encountered: