Skip to content

Commit

Permalink
[7.7] Fix padding around Painless Lab left pane. (elastic#61373) (ela…
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal authored Mar 26, 2020
1 parent 382da6f commit cffa6d1
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 cffa6d1

Please sign in to comment.