fix(ui): fix xray tooltips
This commit is contained in:
parent
5372ae01dd
commit
b8eef2990f
1 changed files with 2 additions and 1 deletions
|
|
@ -32,13 +32,14 @@ const TimelinePointer = React.memo((props: Props) => {
|
|||
};
|
||||
|
||||
const renderNetworkElement = (item: any) => {
|
||||
console.log(item.name)
|
||||
return (
|
||||
<Popup
|
||||
content={
|
||||
<div className="">
|
||||
<b>{item.success ? 'Slow resource: ' : 'Missing resource:'}</b>
|
||||
<br />
|
||||
{item.name}
|
||||
{item.name.length > 200 ? (item.name.slice(0, 100) + ' ... ' + item.name.slice(-50)) : item.name}
|
||||
</div>
|
||||
}
|
||||
delay={0}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue