Skip to content

Commit

Permalink
Scheduling profiler UX changes (facebook#21990)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn authored Aug 2, 2021
1 parent b537247 commit 27bf6f9
Show file tree
Hide file tree
Showing 40 changed files with 2,005 additions and 1,255 deletions.
279 changes: 186 additions & 93 deletions packages/react-devtools-scheduling-profiler/src/CanvasPage.js

Large diffs are not rendered by default.

47 changes: 21 additions & 26 deletions packages/react-devtools-scheduling-profiler/src/EventTooltip.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.Tooltip {
position: fixed;
display: inline-block;
}

.TooltipSection,
.TooltipWarningSection {
display: block;
border-radius: 0.125rem;
max-width: 300px;
padding: 0.25rem;
Expand All @@ -12,11 +16,15 @@
color: var(--color-tooltip-text);
font-size: 11px;
}
.TooltipWarningSection {
margin-top: 0.25rem;
background-color: var(--color-warning-background);
}

.Divider {
height: 1px;
background-color: #aaa;
margin: 0.5rem 0;
margin: 0.25rem 0;
}

.DetailsGrid {
Expand All @@ -40,7 +48,6 @@

.FlamechartStackFrameName {
word-break: break-word;
margin-left: 0.4rem;
}

.ComponentName {
Expand All @@ -49,32 +56,20 @@
margin-right: 0.25rem;
}

.ComponentStack {
overflow: hidden;
max-width: 35em;
max-height: 10em;
margin: 0;
font-size: 0.9em;
line-height: 1.5;
-webkit-mask-image: linear-gradient(
180deg,
var(--color-tooltip-background),
var(--color-tooltip-background) 5em,
transparent
);
mask-image: linear-gradient(
180deg,
var(--color-tooltip-background),
var(--color-tooltip-background) 5em,
transparent
);
white-space: pre;
}

.ReactMeasureLabel {
margin-left: 0.4rem;
}

.UserTimingLabel {
word-break: break-word;
}

.NativeEventName {
font-weight: bold;
word-break: break-word;
margin-right: 0.25rem;
}

.InfoText,
.WarningText {
color: var(--color-warning-text-color);
}
Loading

0 comments on commit 27bf6f9

Please sign in to comment.