Skip to content

Commit

Permalink
Fix EuiBottomBar in serverless (#166840)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet authored Oct 4, 2023
1 parent 88b85eb commit 620ee8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const ProjectNavigation: React.FC = ({ children }) => {

return (
<EuiCollapsibleNavBeta
data-test-subj="projectLayoutSideNav"
initialIsCollapsed={isCollapsed}
onCollapseToggle={onCollapseToggle}
css={isCollapsed ? { display: 'none;' } : {}}
Expand Down
5 changes: 5 additions & 0 deletions src/core/public/styles/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
margin-left: 320px; // Hard-coded for now -- @cchaos
}

// Add support for serverless nabbar
.euiBody--hasFlyout .euiBottomBar {
margin-left: var(--euiCollapsibleNavOffset, 0);
}

// Temporary fix for EuiPageHeader with a bottom border but no tabs or padding
// Will fix in EUI -- @cchaos
.euiPageHeader--bottomBorder:not(.euiPageHeader--tabsAtBottom):not([class*='euiPageHeader--padding']) {
Expand Down

0 comments on commit 620ee8d

Please sign in to comment.