firefox-devtools / ux

Firefox DevTools UX Community
Mozilla Public License 2.0
103 stars 21 forks source link

Flexbox Inspector Improvements #67

Open violasong opened 5 years ago

violasong commented 5 years ago

Could improve on container, item, and container-item UIs. Maybe more unification, related to unified layout panel.

Notes from 2019/2/6 critique

Flex Container list of items

Flex-item pane

SebastianZ commented 4 years ago

Regarding the order of flex items, I see two (non-exclusive) solutions:

  1. Show the order within the page

    This should work similar to the grid areas display and should come with an option to toggle the display via the Layout side panel.

  2. Show the order within the Layout side panel

    The display there may be bound to the flex container to give an overview and/or to the individual flex items. If presented for a flex item, there might be additional information shown why it ended up at that position. So the author can reproduce this similar to the shrink and grow information you provide for the flexibility.

I think an important point here is to differentiate between set order, i.e. via the CSS order property (which will often be 0 due to its initial value), and the computed order, i.e. the resulting order (which should give each element a position number starting from 1).

Sebastian