fix(ui): fix xray tooltips

This commit is contained in:
sylenien 2022-09-02 14:42:30 +02:00
parent 5372ae01dd
commit b8eef2990f

View file

@ -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}