ObjectInspector non-expandable nodes are not properly aligned
Categories
(DevTools :: Shared Components, defect, P1)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: nchevobbe, Unassigned, NeedInfo)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
Steps to reproduce
- Go to
data:text/html,<meta charset=utf8><script>console.dir([1, document, 2])</script>
- Open the console
Expected results
I get the following expanded object:
▼ (3) […]
| 0: 1
| ▶︎ 1: HTMLDocument data:text/html,<meta charset=utf8><script>console.dir([1, document, 2])</script>
| 2: 2
| length: 3
| ▶︎ <prototype>: [
Actual results
I get:
▼ (3) […]
| 0: 1
| ▶︎ 1: HTMLDocument data:text/html,<meta charset=utf8><script>console.dir([1, document, 2])</script>
| 2: 2
| length: 3
| ▶︎ <prototype>: [
which doesn't look good
Looks like only 68 is impacted, I'm running a mozregression to find the bug which regressed it.
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
More specifically, it was regressed by https://github.com/firefox-devtools/debugger/pull/8066, where this was done:
- /* Align with expandables siblings (where we have the arrow) */
- .tree-node[data-expandable="false"] .tree-indent:last-of-type {
- margin-inline-end: 15px;
+ .debugger .tree-indent {
+ width: 16px;
+ margin-inline-start: 0px;
+ border-inline-start: 0;
}
Since we removed the rule for non-expandables node, it doesn't look great in the debugger either (see attachment)
Reporter | ||
Comment 2•5 years ago
|
||
Jaril, David, could you have a look at this?
Adding back:
.tree-node[data-expandable="false"] .tree-indent:last-of-type {
margin-inline-end: 13px;
}
to tree.css
seems to work fine in console, but might be weird in debugger?
Another weird thing in the debugger is that the ObjectInspector nodes don't use a monospaced font, which makes it tricker to properly align things I guess.
Comment 3•5 years ago
|
||
Comment 4•5 years ago
|
||
I've opened https://phabricator.services.mozilla.com/D29008 to get the ball rolling on this.
Updated•5 years ago
|
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6138ca044e5c Fix regression in tree indentation r=nchevobbe
Comment 7•5 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•