From ac19b920f1df9c209e1738c22e95e085d33731eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 13 Dec 2022 08:22:33 +0100 Subject: [PATCH] Explore: Fixes explore page height and margin issues (#59865) --- .../features/explore/ExplorePaneContainer.tsx | 2 +- public/app/features/explore/Wrapper.tsx | 57 +++++++++---------- 2 files changed, 28 insertions(+), 31 deletions(-) diff --git a/public/app/features/explore/ExplorePaneContainer.tsx b/public/app/features/explore/ExplorePaneContainer.tsx index 048dbd1f3fa..8fe80f4a3d9 100644 --- a/public/app/features/explore/ExplorePaneContainer.tsx +++ b/public/app/features/explore/ExplorePaneContainer.tsx @@ -37,7 +37,7 @@ const getStyles = (theme: GrafanaTheme2) => { display: flex; flex: 1 1 auto; flex-direction: column; - overflow: scroll; + overflow: hidden; min-width: 600px; & + & { border-left: 1px dotted ${theme.colors.border.medium}; diff --git a/public/app/features/explore/Wrapper.tsx b/public/app/features/explore/Wrapper.tsx index 51072949c82..211f0805c75 100644 --- a/public/app/features/explore/Wrapper.tsx +++ b/public/app/features/explore/Wrapper.tsx @@ -26,10 +26,8 @@ const styles = { width: 100%; flex-grow: 1; min-height: 0; - `, - exploreWrapper: css` - display: flex; height: 100%; + position: relative; `, }; @@ -135,35 +133,34 @@ function Wrapper(props: GrafanaRouteComponentProps<{}, ExploreQueryParams>) { return (
-
- { - if (size) { - updateSplitSize(size); - } - }} - > + + { + if (size) { + updateSplitSize(size); + } + }} + > + + + + {hasSplit && ( - + - {hasSplit && ( - - - - )} - -
+ )} +
); }