mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* [DevTools] front-end for profiling event stack Adds a side-bar to the profiling tab. Users can now select an update event, and are shown the callstack from the originating component. When a source path is available there is now UI to jump to source. Add FB enabled feature flag: enableProfilerComponentTree for the side-bar. resolves #24170
71 lines
971 B
CSS
71 lines
971 B
CSS
.Toolbar {
|
|
height: 2.25rem;
|
|
padding: 0 0.5rem;
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.Content {
|
|
padding: 0.5rem;
|
|
user-select: none;
|
|
overflow: auto;
|
|
}
|
|
|
|
.List {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.ListItem {
|
|
margin: 0;
|
|
}
|
|
|
|
.Label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
font-weight: bold;
|
|
}
|
|
|
|
[data-source="true"]:hover .Label > .Button {
|
|
background-color: var(--color-background-hover);
|
|
}
|
|
|
|
.Value {
|
|
font-family: var(--font-family-monospace);
|
|
font-size: var(--font-size-monospace-normal);
|
|
}
|
|
|
|
.NothingSelected {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
color: var(--color-dim);
|
|
}
|
|
|
|
.Button {
|
|
display: flex;
|
|
flex: 1;
|
|
|
|
max-width: 95%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
[data-source="true"] .Button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.Button > span {
|
|
display: block;
|
|
text-align: left;
|
|
}
|
|
|
|
.Source {
|
|
}
|