Merge pull request #647 from Sl-Alex/feature/exact-size-in-responsesize

Fix #646: show exact response size in bytes on mouse hover
This commit is contained in:
Anoop M D 2023-10-18 10:46:53 +05:30 committed by GitHub
commit ca8b2a58d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,10 @@ const ResponseSize = ({ size }) => {
sizeToDisplay = size + 'B';
}
return <StyledWrapper className="ml-4">{sizeToDisplay}</StyledWrapper>;
return (
<StyledWrapper title={size.toLocaleString() + 'B'} className="ml-4">
{sizeToDisplay}
</StyledWrapper>
);
};
export default ResponseSize;