-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix layout shift in home component #14112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm is this really an issue? I tried to repro, and to me, it seems like the bigger issue is most of the dashboard content is dynamic and on refreshes, I see the giant Ready to scale
banner flash above the fold before it shifts downward which makes me think we'd be better off tweaking the other content on this page rather than the title?
Or maybe hold the banner until the data is loaded also? if i'm reading correctly, seems like the heading and most-content is contingent on the flow run count subscription but the banner isn't so i see the banner get shifted on load.
TBH maybe I "reproduced" the wrong thing. But I noticed that because the filters on the dashboard are But we could also await the data or use a loader on the whole page until the data is loaded. And that would also fix the problem I think. |
🤔 from what i can tell(by observation and also code), the actions actually always render in regardless of the flow run count subscription because separate thought, at small screens, the heading folds to vertical layout which min-h-11 is probably too small for. |
Nah that's what I had in mind when I made the issue -- thanks! |
Closes #14111