Merge pull request #139 from SigNoz/update-zoom-px

feat: update zoom pixels based on screen width
This commit is contained in:
Ankit Nayan 2021-05-31 21:55:29 +05:30 committed by GitHub
commit 51a24673b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,10 +79,11 @@ export const getZoomPx = (): number => {
if (width < 1400) { if (width < 1400) {
return 190; return 190;
} else if (width > 1400 && width < 1700) { } else if (width > 1400 && width < 1700) {
return 380; return 400;
} else if (width > 1700) { } else if (width > 1700) {
return 470; return 485;
} }
return 190;
}; };
export const getTooltip = (node: { export const getTooltip = (node: {