Skip to content
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

[ui] Fix layout for global banner #18817

Merged
merged 1 commit into from
Dec 20, 2023
Merged

[ui] Fix layout for global banner #18817

merged 1 commit into from
Dec 20, 2023

Conversation

hellendag
Copy link
Member

Summary & Motivation

The global banner some users are seeing in Cloud is breaking the layout. This is because the banner pushes the main content down below the edge of the viewport.

To resolve this, modify the core layout component to accommodate the banner by passing it as a prop.

How I Tested These Changes

Force a banner to appear on the page. Click around throughout the app, verify that pages render correctly and can be scrolled correctly as well, including pages with virtualized tables and DAG views.

@hellendag
Copy link
Member Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

Copy link

github-actions bot commented Dec 19, 2023

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-cz4btdbij-elementl.vercel.app
https://dish-banner-layout.core-storybook.dagster-docs.io

Built with commit d98603e.
This pull request is being automatically deployed with vercel-action

@hellendag hellendag force-pushed the dish/banner-layout branch 2 times, most recently from f206452 to a243d2e Compare December 19, 2023 22:19
[INTERNAL_BRANCH=dish/banners]
Comment on lines +61 to +62
overflow: hidden;
`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need overflow scroll? or is Main the scroller?

Copy link
Member Author

@hellendag hellendag Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MainContent is the scrollable child, as defined in ContentRoot. ContentRoot is passed in as children here.

@hellendag hellendag merged commit c1eafcc into master Dec 20, 2023
1 of 2 checks passed
@hellendag hellendag deleted the dish/banner-layout branch December 20, 2023 17:05
jmsanders pushed a commit that referenced this pull request Dec 20, 2023
## Summary & Motivation

The global banner some users are seeing in Cloud is breaking the layout.
This is because the banner pushes the main content down below the edge
of the viewport.

To resolve this, modify the core layout component to accommodate the
banner by passing it as a prop.

## How I Tested These Changes

Force a banner to appear on the page. Click around throughout the app,
verify that pages render correctly and can be scrolled correctly as
well, including pages with virtualized tables and DAG views.

(cherry picked from commit c1eafcc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants