mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
* Add tooltip component * Separate logic of ProfilerWhatChanged to a component * Add hovered Fiber info tooltip component * Add flame graph chart tooltip * Add commit ranked list tooltip * Fix flow issues * Minor improvement in filter * Fix flickering issue * Resolved issues on useCallbacks and mouse event listeners * Fix lints * Remove unnecessary useCallback
60 lines
991 B
CSS
60 lines
991 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-y: auto;
|
|
}
|
|
|
|
.WhatChanged {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.Component {
|
|
flex: 1;
|
|
color: var(--color-component-name);
|
|
font-family: var(--font-family-monospace);
|
|
font-size: var(--font-size-monospace-normal);
|
|
white-space: nowrap;
|
|
overflow-x: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.Label {
|
|
font-weight: bold;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.CurrentCommit,
|
|
.Commit {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
background: none;
|
|
border: none;
|
|
padding: 0.25rem 0.5rem;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.Commit:focus,
|
|
.Commit:hover {
|
|
outline: none;
|
|
background-color: var(--color-background-hover);
|
|
}
|
|
|
|
.CurrentCommit {
|
|
background-color: var(--color-background-selected);
|
|
color: var(--color-text-selected);
|
|
}
|
|
|
|
.CurrentCommit:focus {
|
|
outline: none;
|
|
}
|