Fix KibanaPageTemplate.BottomBar in serverless (#168235)

## Summary

The latest changes applied [here
](https://github.com/elastic/kibana/pull/166840) caused the
`KibanaPageTemplate.BottomBar` to not work properly:


![KibanaPageTemplate.BottomBar](5720fb62-1352-4140-b0f6-93c818689660)

The `margin-left` should be applied only to `.euiBottomBar--fixed`
instead of all `.euiBottomBar`, `--sticky` and `--static` are already
positioned correctly to the relative parent, so no margin needs to be
applied.
This commit is contained in:
Sergi Massaneda 2023-10-06 18:30:05 +02:00 committed by GitHub
parent 653cfb2e9b
commit 0a2148f854
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,8 +26,8 @@
margin-left: 320px; // Hard-coded for now -- @cchaos
}
// Add support for serverless nabbar
.euiBody--hasFlyout .euiBottomBar {
// Add support for serverless navbar
.euiBody--hasFlyout .euiBottomBar--fixed {
margin-left: var(--euiCollapsibleNavOffset, 0);
}