GeezerVison is showing github.com — Scheduling profiler UX changes (#21990) · react/react@27bf6f9
File tree
Expand file treeCollapse file tree
Open diff view settings
react-devtools-scheduling-profiler/src react-devtools-shared/src
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/react-devtools-scheduling-profiler/src/CanvasPage.js +186-93Lines changed: 186 additions & 93 deletions Large diffs are not rendered by default.
Collapse file
Copy file name to clipboard +21-26Lines changed: 21 additions & 26 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | .Tooltip { |
2 | 2 | position: fixed; |
3 | | - display: inline-block; |
| 3 | +} |
| 4 | + |
| 5 | +.TooltipSection, |
| 6 | +.TooltipWarningSection { |
| 7 | + display: block; |
4 | 8 | border-radius: 0.125rem; |
5 | 9 | max-width: 300px; |
6 | 10 | padding: 0.25rem; |
|
12 | 16 | color: var(--color-tooltip-text); |
13 | 17 | font-size: 11px; |
14 | 18 | } |
| 19 | +.TooltipWarningSection { |
| 20 | + margin-top: 0.25rem; |
| 21 | + background-color: var(--color-warning-background); |
| 22 | +} |
15 | 23 |
|
16 | 24 | .Divider { |
17 | 25 | height: 1px; |
18 | 26 | background-color: #aaa; |
19 | | - margin: 0.5rem 0; |
| 27 | + margin: 0.25rem 0; |
20 | 28 | } |
21 | 29 |
|
22 | 30 | .DetailsGrid { |
|
40 | 48 |
|
41 | 49 | .FlamechartStackFrameName { |
42 | 50 | word-break: break-word; |
43 | | - margin-left: 0.4rem; |
44 | 51 | } |
45 | 52 |
|
46 | 53 | .ComponentName { |
|
49 | 56 | margin-right: 0.25rem; |
50 | 57 | } |
51 | 58 |
|
52 | | -.ComponentStack { |
53 | | - overflow: hidden; |
54 | | - max-width: 35em; |
55 | | - max-height: 10em; |
56 | | - margin: 0; |
57 | | - font-size: 0.9em; |
58 | | - line-height: 1.5; |
59 | | - -webkit-mask-image: linear-gradient( |
60 | | - 180deg, |
61 | | - var(--color-tooltip-background), |
62 | | - var(--color-tooltip-background) 5em, |
63 | | - transparent |
64 | | - ); |
65 | | - mask-image: linear-gradient( |
66 | | - 180deg, |
67 | | - var(--color-tooltip-background), |
68 | | - var(--color-tooltip-background) 5em, |
69 | | - transparent |
70 | | - ); |
71 | | - white-space: pre; |
72 | | -} |
73 | | - |
74 | 59 | .ReactMeasureLabel { |
75 | | - margin-left: 0.4rem; |
76 | 60 | } |
77 | 61 |
|
78 | 62 | .UserTimingLabel { |
79 | 63 | word-break: break-word; |
80 | 64 | } |
| 65 | + |
| 66 | +.NativeEventName { |
| 67 | + font-weight: bold; |
| 68 | + word-break: break-word; |
| 69 | + margin-right: 0.25rem; |
| 70 | +} |
| 71 | + |
| 72 | +.InfoText, |
| 73 | +.WarningText { |
| 74 | + color: var(--color-warning-text-color); |
| 75 | +} |