Closed Bug 1589961 Opened 5 years ago Closed 5 years ago

Request blocking - align list style with XHR Breakpoints style

Categories

(DevTools :: Netmonitor, enhancement)

enhancement
Not set
normal

Tracking

(firefox71 verified, firefox72 verified)

VERIFIED FIXED
Firefox 72
Tracking Status
firefox71 --- verified
firefox72 --- verified

People

(Reporter: fvsch, Assigned: fvsch)

References

Details

Attachments

(3 files)

The spacing in Request blocking is a bit random, we have 26px rows and a bunch of styles like position: relative; bottom: 1px; on checkboxes and some margin-top: 2px on some elements to fake vertical alignment.

The toolbar's bottom border is also hidden because the toolbar ends up being 27px tall but the content is overlaid on top of it and positioned with top: 26px, effectively hiding the border.

My suggestion would be to:

  1. Use Flexbox for vertical alignment instead of optical corrections with relative positioning and margin-top.
  2. For the request list, adopt the style used in XHR Breakpoints (which implements a design spec by Jaril).

Other visual polish bugs we could include in a fix:

Assignee: nobody → florens
Status: NEW → ASSIGNED

Here's what it looks like in action.

  • Rows are 20px tall.
  • The Remove buttons' hitboxes are 20x20, and the visible part is 16x16 as before. Same design, but the hitbox is slightly larger and when you go from button to button vertically there is only one visual change instead of 3 (which makes the UI look jittery or brittle).
  • When you double-click to edit a URL, the next rows don't move (the current code is trying to do that but there is a 1px or 2px jump).

Second demo, just making sure the scrolling experience is alright.

Since I chose to add a bottom border to the New URL form to make it stand out (bug 1585621), the result when scrolling down is not perfect. Ideally when the container scrolls, we should remove the bottom border, but the ways to do that are maybe a bit hacky or rely on JS so I thought I'd leave it like this for now.

Pushed by florens@fvsch.com:
https://hg.mozilla.org/integration/autoland/rev/f382b51132cc
Improve UI alignment in Request Blocking pane, align with XHR Breakpoints style; r=Honza
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72

Verified with 72.0a1 (2019-10-22).
Closing 1584960 as well, since it seems cleaner like this.

Status: RESOLVED → VERIFIED

Comment on attachment 9102831 [details]
Bug 1589961 - Improve UI alignment in Request Blocking pane, align with XHR Breakpoints style; r=Honza

Beta/Release Uplift Approval Request

  • User impact if declined: Incorrectly rendered buttons (bug 1590343) would make a new tool look half-baked.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Only adjusted CSS alignment similar to other panels.
  • String changes made/needed:
Attachment #9102831 - Flags: approval-mozilla-beta?

Comment on attachment 9102831 [details]
Bug 1589961 - Improve UI alignment in Request Blocking pane, align with XHR Breakpoints style; r=Honza

Low risk polish bug in devtools, verified as fixed on Nightly by QA, uplift approved for 71 beta 4, thanks.

Attachment #9102831 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Verified with 71.0b4 on macOS 10.13, Windows 10, Ubuntu 16.04.

Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: