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

[EuiPageHeaderContent] Improve responsiveness #8044

Merged
merged 10 commits into from
Sep 26, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

I really like your approach to adding before/after commits for VRT 👏 🧠

Copy link
Member Author

Choose a reason for hiding this comment

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

It's really helpful for me to confirm I'm actually fixing stuff! And also makes before/after screenshots in the PR description a breeze! 😎

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,9 @@ export const EuiPageHeaderContent: FunctionComponent<
);

let bottomContentNode;
if (childrenNode || (tabsNode && pageTitleNode)) {
if (tabsNode && pageTitleNode) {
bottomContentNode = (
<div className="euiPageHeaderContent__bottom">
{childrenNode}
{pageTitleNode && tabsNode}
</div>
);
Expand All @@ -336,13 +335,15 @@ export const EuiPageHeaderContent: FunctionComponent<
<>
{tabsNode}
{descriptionNode}
{childrenNode}
</>
);
} else {
leftSideOrder = (
<>
{pageTitleNode}
{descriptionNode}
{childrenNode}
</>
);
}
Expand Down Expand Up @@ -402,10 +403,10 @@ export const EuiPageHeaderContent: FunctionComponent<
>
<EuiFlexItem>
{leftSideOrder}
{bottomContentNode}
</EuiFlexItem>
{rightSideFlexItem}
</EuiFlexGroup>
{bottomContentNode}
</div>
);
};