Skip to content

Commit 0e6ea69

Browse files
authored
fix[react-devtools/InspectedElementView.css]: dont draw bottom border for empty badge list (#29023)
Forward fix to #29014, the bug was discovered while testing v5.2.0.
1 parent b37e4b4 commit 0e6ea69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSharedStyles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.InspectedElementTree {
22
padding: 0.25rem;
3-
border-top: 1px solid var(--color-border);
43
}
54
.InspectedElementTree:first-of-type {
65
border-top: none;

packages/react-devtools-shared/src/devtools/views/Components/InspectedElementView.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
line-height: var(--line-height-data);
2626
}
2727

28-
.InspectedElementBadgesContainer {
28+
.InspectedElementBadgesContainer:not(:empty) {
2929
padding: 0.25rem;
30+
border-bottom: 1px solid var(--color-border);
3031
}
3132

3233
.Owner {

0 commit comments

Comments
 (0)