Closed Bug 1570821 Opened 5 years ago Closed 5 years ago

Limit height for variable tooltip to preserve space

Categories

(DevTools :: Debugger, enhancement, P5)

enhancement

Tracking

(firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: Harald, Assigned: shellyc23)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(3 files)

Attached image Firefox (deleted) —

What were you doing?

  1. Pause in an event listener
  2. Hover an element or event.target

What happened?

Tooltip taking the full width of the Debugger, which in vertical mode is a lot.

What should have happened?

Limit it to a reasonable size and scroll the rest.

Anything else we should know?

Chrome limit size.

Attached image Chrome (deleted) —

Limiting the height sounds reasonable. To something like Chrome's or a bit taller maybe.
As mentioned on Slack the left padding seems a bit extra too.

Keywords: good-first-bug

I would like to take a stab at this.

Sounds good Krishnal! Let me know if you need help!

Added and if statement to calculateMaxHeight() to prevent it from exceeding 250, and decresed the padding of the .object-node selector.

Pushed by dwalsh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b8dc5c551235 limit height for variable tooltip and decrease left padding r=davidwalsh
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
Assignee: nobody → shellyc23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: