Skip to content

Commit

Permalink
[ML] Fixes chart header flex layout overflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Oct 4, 2018
1 parent 3e4e37e commit 9537d87
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function ExplorerChartLabel({ detectorLabel, entityFields, infoTooltip, w
const entityFieldBadges = entityFields.map((entity) => {
return (
<React.Fragment key={`${entity.fieldName} ${entity.fieldValue}`}>
<ExplorerChartLabelBadge entity={entity} />&nbsp;
<ExplorerChartLabelBadge entity={entity} />
</React.Fragment>
);
});
Expand Down Expand Up @@ -63,7 +63,7 @@ export function ExplorerChartLabel({ detectorLabel, entityFields, infoTooltip, w
)}
</span>
{wrapLabel && (
<div>{entityFieldBadges}</div>
<span className="ml-explorer-chart-label-badges">{entityFieldBadges}</span>
)}
</React.Fragment>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.ml-explorer-chart-eui-icon-tip {
max-width: none;
}

.ml-explorer-chart-label-badges {
margin-top: 3px;
/* let this overflow but not interfere with the flex layout */
width: 0;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.ml-explorer-chart-container {
overflow: hidden;

.ml-explorer-chart-svg {
font-size: 12px;
Expand Down Expand Up @@ -109,6 +110,10 @@
}
}

.ml-explorer-chart {
overflow: hidden;
}

.ml-explorer-chart-content-wrapper {
height: 215px;
}

0 comments on commit 9537d87

Please sign in to comment.