Skip to content

Commit

Permalink
Fix padding around Painless Lab left pane. (#61373)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
cjcenizal and elasticmachine authored Mar 26, 2020
1 parent f53d433 commit 194cc87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const Main: React.FunctionComponent = () => {
return (
<div className="painlessLabMainContainer">
<EuiFlexGroup className="painlessLabPanelsContainer" responsive={false} gutterSize="none">
<EuiFlexItem>
<EuiFlexItem className="painlessLabLeftPane">
<EuiTitle className="euiScreenReaderOnly">
<h1>
{i18n.translate('xpack.painlessLab.title', {
Expand Down
9 changes: 7 additions & 2 deletions x-pack/plugins/painless_lab/public/styles/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
* This is a very brittle way of preventing the editor and other content from disappearing
* behind the bottom bar.
*/
$bottomBarHeight: calc(#{$euiSize} * 3);
$bottomBarHeight: calc(#{$euiSize} * 3);

.painlessLabBottomBarPlaceholder {
height: $bottomBarHeight
}

.painlessLabLeftPane {
padding-top: $euiSizeM;
background-color: $euiColorEmptyShade;
}

.painlessLabRightPane {
border-right: none;
border-top: none;
Expand All @@ -25,7 +30,7 @@ $bottomBarHeight: calc(#{$euiSize} * 3);
flex-direction: column;
height: 100%;

[role="tabpanel"] {
[role='tabpanel'] {
height: 100%;
overflow-y: auto;
}
Expand Down

0 comments on commit 194cc87

Please sign in to comment.