Browse Source

Merge pull request #15041 from grafana/14752-explore-custom-scrollbar

Use CustomScrollbar in explore
Torkel Ödegaard 7 years ago
parent
commit
c9d060c0fe
1 changed files with 14 additions and 9 deletions
  1. 14 9
      public/app/features/explore/Wrapper.tsx

+ 14 - 9
public/app/features/explore/Wrapper.tsx

@@ -10,6 +10,7 @@ import { parseUrlState } from 'app/core/utils/explore';
 import { initializeExploreSplit } from './state/actions';
 import ErrorBoundary from './ErrorBoundary';
 import Explore from './Explore';
+import { CustomScrollbar } from '@grafana/ui';
 
 interface WrapperProps {
   initializeExploreSplit: typeof initializeExploreSplit;
@@ -46,15 +47,19 @@ export class Wrapper extends Component<WrapperProps> {
     const { leftState, rightState } = this.urlStates;
 
     return (
-      <div className="explore-wrapper">
-        <ErrorBoundary>
-          <Explore exploreId={ExploreId.left} urlState={leftState} />
-        </ErrorBoundary>
-        {split && (
-          <ErrorBoundary>
-            <Explore exploreId={ExploreId.right} urlState={rightState} />
-          </ErrorBoundary>
-        )}
+      <div className="page-scrollbar-wrapper">
+        <CustomScrollbar autoHeightMin={'100%'}>
+          <div className="explore-wrapper">
+            <ErrorBoundary>
+              <Explore exploreId={ExploreId.left} urlState={leftState} />
+            </ErrorBoundary>
+            {split && (
+              <ErrorBoundary>
+                <Explore exploreId={ExploreId.right} urlState={rightState} />
+              </ErrorBoundary>
+            )}
+          </div>
+        </CustomScrollbar>
       </div>
     );
   }