-
Notifications
You must be signed in to change notification settings - Fork 47k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error boundary in inspected elements panel (#21531)
Show more info about the error as well as the option to report it to GitHub.
- Loading branch information
Brian Vaughn
authored
May 19, 2021
1 parent
3f8f467
commit 99995c1
Showing
3 changed files
with
21 additions
and
97 deletions.
There are no files selected for viewing
22 changes: 2 additions & 20 deletions
22
...ges/react-devtools-shared/src/devtools/views/Components/InspectedElementErrorBoundary.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
.Error { | ||
justify-content: center; | ||
align-items: center; | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
font-size: var(--font-size-sans-large); | ||
font-weight: bold; | ||
text-align: center; | ||
background-color: var(--color-error-background); | ||
color: var(--color-error-text); | ||
border: 1px solid var(--color-error-border); | ||
padding: 1rem; | ||
} | ||
|
||
.Message { | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.RetryButton { | ||
.Wrapper { | ||
border-left: 1px solid var(--color-border); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters