Skip to content

Commit

Permalink
fix(code/frontend): fix files and directories overlap in ie 11 (#43246)…
Browse files Browse the repository at this point in the history
… (#43422)
  • Loading branch information
WangQianliang authored Aug 16, 2019
1 parent a167d08 commit bf19b19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
18 changes: 7 additions & 11 deletions x-pack/legacy/plugins/code/public/components/main/directory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ const DirectoryNodes = (props: DirectoryNodesProps) => {
</EuiFlexItem>
));
return (
<EuiFlexItem className="codeContainer__directoryList">
<EuiFlexGroup direction="column" gutterSize="none">
<EuiFlexItem>
<div className="codeContainer__directoryList">
<div>
<div>
<EuiTitle size="s">
<h3>{props.title}</h3>
</EuiTitle>
</EuiFlexItem>
</div>
<EuiFlexGroup wrap direction="row" gutterSize="none" justifyContent="flexStart">
{nodes}
</EuiFlexGroup>
</EuiFlexGroup>
</EuiFlexItem>
</div>
</div>
);
};

Expand Down Expand Up @@ -120,9 +120,5 @@ export const Directory = withRouter((props: Props) => {
{folders.length > 0 && folderList}
</React.Fragment>
);
return (
<EuiFlexGroup direction="column" gutterSize="none">
{children}
</EuiFlexGroup>
);
return <div>{children}</div>;
});
1 change: 1 addition & 0 deletions x-pack/legacy/plugins/code/public/style/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
}
&:not(:first-child) {
padding-top: 0;
padding-bottom: 0;
}
}

Expand Down

0 comments on commit bf19b19

Please sign in to comment.