Network request detail is visually inconsistent with Network panel
Categories
(DevTools :: Console, enhancement, P3)
Tracking
(firefox74 fixed)
| Tracking | Status | |
|---|---|---|
| firefox74 | --- | fixed |
People
(Reporter: fvsch, Assigned: nlopin, Mentored)
Details
(Keywords: good-first-bug)
Attachments
(7 files)
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
| Reporter | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
| Reporter | ||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
This bug has not been updated in the last 3 months. Resetting the assignee field.
Please, feel free to pick it up again and add a comment outlining your plans for it if you do still intend to work on it.
This is just trying to clean our backlog of bugs and make bugs available for people.
| Reporter | ||
Comment 10•7 years ago
|
||
Cool. :) If this is your first bug, you should follow these steps to get started:
https://docs.firefox-dev.tools/getting-started/build.html
In particular, don't skip the "Building even faster with artifact builds" section, because artifact builds are a great way to work on CSS and JS changes when you don't need to build any C/C++/Rust code.
I would break this bug in 3 parts:
-
Can we remove the
devtools-monospaceclass on the request details container?
(Selector for that container is:.message.network > .message-body-wrapper > .network-info)
That's the main reason why we have a monospace font everywhere on this container, and it would be nice to use the same style (not monospace except for a few elements) as in Network. -
Can we make the "No (cookies|parameters) for this request" message smaller? It's 24px currently. In my tests, 16px works well enough. (Feel free to suggest a different size if you think something else works better.)
-
We are missing the colors for the timing bars in the Timings tab. The selector seems to be
.network-monitor .requests-list-timings-boxindevtools/client/netmonitor/src/assets/styles/NetworkDetailsPanel.css. We'll have to investigate why we have more styles for this element in Network but not in Console. Maybe we forgot to include a stylesheet?
Updated•6 years ago
|
| Assignee | ||
Comment 11•6 years ago
|
||
Hello guys.
I took a rough look at the issue. Here is what I found:
-
The monospace font is set at the
.network-infodiv as mentioned at the comment #10. It looks like it is not needed in this particular case, but it needs checks to confirm that assumption. -
The "No Cookies for this request" message in the Console tab shares styles with the Network tab message. I don't see any problem adding some customization there
-
Timing colors seem to work properly. I don't see any difference between Console and Network tabs (see attachments)
I can take this bug if it is still relevant.
| Assignee | ||
Comment 12•6 years ago
|
||
| Assignee | ||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Hello,
Some of the issues were fixed in Bug 1436043 (including the timing colors), but I think you can go on with 1. and 2. :)
Updated•6 years ago
|
| Assignee | ||
Comment 15•6 years ago
|
||
I've removed the monospace font family and the empty text looks proportional now. Plus it is 100% the same as in the Network tab. I don't see a reason to make the font size less.
Nicolas, what do you think?
| Assignee | ||
Comment 16•6 years ago
|
||
Here is the same tab but with the 18px font.
Comment 17•6 years ago
|
||
I've removed the monospace font family and the empty text looks proportional now. Plus it is 100% the same as in the Network tab. I don't see a reason to make the font size less.
So in the netmonitor, the detail panel takes the whole height of the devtools panel, whereas in the console there's a max-height to it, which means it's often smaller. Furthermore, in the console there's a lot of other items (like, the other messages), and having this big text may put to much emphasis on it.
I guess that was Florens vision.
Florens, correct me if I'm wrong :)
| Assignee | ||
Comment 18•6 years ago
|
||
The network details section in Console tab used monospace font family which caused inconsistent UI with the same section in Network tab.
| Assignee | ||
Comment 19•6 years ago
|
||
Depends on D58849
Updated•6 years ago
|
Updated•6 years ago
|
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/49166fb54a27
https://hg.mozilla.org/mozilla-central/rev/6d1f0e2620a9
Description
•