mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
React-UI: flex-wrap the content (#6796)
* flex-wrap the content Signed-off-by: blalov <boiskila@gmail.com> * wrap formatted series in a div Signed-off-by: blalov <boiskila@gmail.com>
This commit is contained in:
parent
26574eb04d
commit
1c321ed047
|
@ -153,17 +153,20 @@ button.execute-btn {
|
|||
.legend-item {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 5px;
|
||||
border-radius: 3px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.legend-item div {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.legend-swatch {
|
||||
width: 7px;
|
||||
min-width: 7px;
|
||||
height: 7px;
|
||||
outline-offset: 1px;
|
||||
outline: 1.5px solid #ccc;
|
||||
margin: 2px 8px 2px 0;
|
||||
margin: 6px 8px 2px 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
@ -244,7 +247,7 @@ button.execute-btn {
|
|||
|
||||
.rule_cell {
|
||||
white-space: pre-wrap;
|
||||
background-color: #F5F5F5;
|
||||
background-color: #f5f5f5;
|
||||
display: block;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
|
|
@ -28,12 +28,12 @@ const SeriesName: FC<SeriesNameProps> = ({ labels, format }) => {
|
|||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<span className="legend-metric-name">{labels!.__name__ || ''}</span>
|
||||
<span className="legend-label-brace">{'{'}</span>
|
||||
{labelNodes}
|
||||
<span className="legend-label-brace">{'}'}</span>
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue