Skip to content

Commit f236ff6

Browse files
authored
ui: Skip nodes < 1px width (#5996)
1 parent 499732b commit f236ff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/packages/shared/profile/src/ProfileFlameGraph/FlameGraphArrow/useVisibleNodes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ export const useVisibleNodes = ({
151151
continue;
152152
}
153153

154-
// Size culling: Skip nodes too small to be visible (< 0.1px width)
154+
// Size culling: Skip nodes too small to be visible (< 1px width)
155155
const computedWidth = (cumulative / totalNumber) * width;
156-
if (computedWidth <= 0.1) {
156+
if (computedWidth <= 1) {
157157
continue;
158158
}
159159

0 commit comments

Comments
 (0)