ScrollContainer: Use ScrollContainer in some dashboard components (#95668)
* use ScrollContainer in some dashboard components * remove unnecessary wrapper * remove unnecessary minHeight
This commit is contained in:
@@ -8,7 +8,7 @@ import { LegendPlacement } from '@grafana/schema';
|
||||
|
||||
import { useStyles2, useTheme2 } from '../../themes/ThemeContext';
|
||||
import { getFocusStyles } from '../../themes/mixins';
|
||||
import { CustomScrollbar } from '../CustomScrollbar/CustomScrollbar';
|
||||
import { ScrollContainer } from '../ScrollContainer/ScrollContainer';
|
||||
|
||||
/**
|
||||
* @beta
|
||||
@@ -98,7 +98,7 @@ export const VizLayout: VizLayoutComponentType = ({ width, height, legend, child
|
||||
<div style={containerStyle}>
|
||||
<div className={styles.viz}>{size && children(size.width, size.height)}</div>
|
||||
<div style={legendStyle} ref={legendRef}>
|
||||
<CustomScrollbar hideHorizontalTrack>{legend}</CustomScrollbar>
|
||||
<ScrollContainer>{legend}</ScrollContainer>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user