Skip to content

Commit

Permalink
[ML] Fix vertical overflow on Single Metric Viewer page (#66413)
Browse files Browse the repository at this point in the history
* [ML] fix page overflow

* [ML] fix tooltip overflow
  • Loading branch information
darnautov authored May 13, 2020
1 parent 9ab73ef commit 69d4199
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ const Tooltip: FC<{ service: ChartTooltipService }> = React.memo(({ service }) =

return (
<TooltipTrigger
modifiers={{
preventOverflow: {
boundariesElement: 'window',
},
}}
placement="right-start"
trigger="none"
tooltipShown={isTooltipShown}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.ml-time-series-explorer {
width: 100%;
display: inline-block;
color: $euiColorDarkShade;

.no-results-container {
Expand Down Expand Up @@ -31,8 +29,6 @@
}

.results-container {
padding: $euiSize;

.panel-title {
font-size: $euiFontSizeM;
font-weight: 400;
Expand All @@ -46,8 +42,6 @@
}

.series-controls {
padding: $euiSize $euiSize 0px $euiSize;

div.entity-controls {
display: inline-block;
padding-left: $euiSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,8 @@ export class TimeSeriesExplorer extends React.Component {
</EuiFlexGroup>
</div>

<EuiSpacer size="m" />

{fullRefresh && loading === true && (
<LoadingIndicator
label={i18n.translate('xpack.ml.timeSeriesExplorer.loadingLabel', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const TimeSeriesExplorerPage: FC<TimeSeriesExplorerPageProps> = ({
ref={resizeRef}
data-test-subj="mlPageSingleMetricViewer"
>
<EuiPage style={{ padding: '0px', background: 'none' }}>
<EuiPage style={{ background: 'none' }}>
<EuiPageBody>
<EuiScreenReaderOnly>
<h1>
Expand Down

0 comments on commit 69d4199

Please sign in to comment.