Open Bug 1798564 Opened 3 years ago Updated 4 months ago

Improve thresholds for switching between horizontal and vertical layout

Categories

(DevTools :: Netmonitor, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: sebo, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently, the thresholds for switching the side panels display within the Netmonitor to the bottom or the right are fixed. See https://searchfox.org/mozilla-central/rev/a3decf626dabd89620171f0ea7840cc4351fe218/devtools/client/netmonitor/src/components/MonitorPanel.js#52-58.

This sometimes leads to display issues regarding the main panel getting to small as described in https://stackoverflow.com/q/74140561/432681.

There are two (non-exclusive) solutions how to improve this UI:

  1. Choose the thresholds dynamically depending on the width of the left and right side panels.
  2. Allow users to set the thresholds manually.

This actually applies to all panels that have side panels. Though the code related to displaying side panels vertically is inconsistent at the moment. Some panels like the Netmonitor and the Inspector change the layout using thresholds set in JavaScript. Other panels like the Style Editor or the Storage Inspector use a pure CSS solution for that.

So, it might also make sense to unify those solutions first and then improve the behavior by implementing one or both of the solutions above.

Sebastian

note that in Bug 1602455 we could have an option for users to manually chose the horizontal/vertical layout

See Also: → 1602455

Do you plan to replace the automatic switching by a manual solution or will the manual solution be an additional option to the automatic behavior?

Sebastian

Flags: needinfo?(nchevobbe)

I was thinking having 3 options in the settings menu:

  • auto
  • horizontal
  • vertical
Flags: needinfo?(nchevobbe)
See Also: → 1930393
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: