From bf19b19506ae2b569581689b95f18bd8c7a7d5f1 Mon Sep 17 00:00:00 2001 From: WangQianliang Date: Fri, 16 Aug 2019 15:39:29 +0800 Subject: [PATCH] fix(code/frontend): fix files and directories overlap in ie 11 (#43246) (#43422) --- .../code/public/components/main/directory.tsx | 18 +++++++----------- .../plugins/code/public/style/_layout.scss | 1 + 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/x-pack/legacy/plugins/code/public/components/main/directory.tsx b/x-pack/legacy/plugins/code/public/components/main/directory.tsx index 29667e6e44024..090e594f82a65 100644 --- a/x-pack/legacy/plugins/code/public/components/main/directory.tsx +++ b/x-pack/legacy/plugins/code/public/components/main/directory.tsx @@ -52,18 +52,18 @@ const DirectoryNodes = (props: DirectoryNodesProps) => { )); return ( - - - +
+
+

{props.title}

- +
{nodes} - - +
+
); }; @@ -120,9 +120,5 @@ export const Directory = withRouter((props: Props) => { {folders.length > 0 && folderList} ); - return ( - - {children} - - ); + return
{children}
; }); diff --git a/x-pack/legacy/plugins/code/public/style/_layout.scss b/x-pack/legacy/plugins/code/public/style/_layout.scss index 66d256e1a7712..6b40f0e6106bc 100644 --- a/x-pack/legacy/plugins/code/public/style/_layout.scss +++ b/x-pack/legacy/plugins/code/public/style/_layout.scss @@ -185,6 +185,7 @@ } &:not(:first-child) { padding-top: 0; + padding-bottom: 0; } }