problems panel: show tooltip for item value
This commit is contained in:
@@ -187,12 +187,15 @@ interface ProblemItemProps {
|
|||||||
|
|
||||||
function ProblemItem(props: ProblemItemProps) {
|
function ProblemItem(props: ProblemItemProps) {
|
||||||
const { item, showName } = props;
|
const { item, showName } = props;
|
||||||
|
const itemName = utils.expandItemName(item.name, item.key_);
|
||||||
return (
|
return (
|
||||||
|
<Tooltip placement="bottom" content={itemName}>
|
||||||
<div className="problem-item">
|
<div className="problem-item">
|
||||||
<FAIcon icon="thermometer-three-quarters" />
|
<FAIcon icon="thermometer-three-quarters" />
|
||||||
{showName && <span className="problem-item-name">{item.name}: </span>}
|
{showName && <span className="problem-item-name">{item.name}: </span>}
|
||||||
<span className="problem-item-value">{item.lastvalue}</span>
|
<span className="problem-item-value">{item.lastvalue}</span>
|
||||||
</div>
|
</div>
|
||||||
|
</Tooltip>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user