Open Bug 1492056 Opened 6 years ago Updated 8 months ago

Add alignment popup for flex and grid items

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: pbro, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed)

Attachments

(1 file)

This is the bug that will be used to enable the new alignment inspector tool in nightly by default, whenever we feel good with the scope and stability.
Once it's enabled, it should be documented at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features. Sebastian
Keywords: dev-doc-needed
Priority: -- → P3

Since Chrome, Edge and Safari now have some kind of version of this, it would be nice to start working on it.

Victoria, I think I remember you had some designs for flex/grid alignment in the inspector, but I couldn't find anything (except https://github.com/firefox-devtools/ux/issues/72)
Do you remember this, and would you have a link to design files?

If not we could probably try to take some inspiration from the other browsers

Flags: needinfo?(victoria)

Hi Nicolas! Sorry for the delayed response. I only did that autocomplete menu design, but we did discuss the idea of a visual alignment tool a lot. Sounds good to take inspiration from the other browsers :).

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1114973

Flags: needinfo?(victoria)

Raphael, is this something you would be interested in?
We don't have a clear plan yet, but it would be nice to add an alignment popup like the one in Chrome.
No pressure though, you might not want to do this/don't have the time to :)

Mentor: nchevobbe
Flags: needinfo?(rfemailtesting)
Summary: Enable the new alignment inspector in Nightly → Add alignment popup for flex and grid items
Severity: normal → S3

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.

For more information, please visit BugBot documentation.

Flags: needinfo?(rfemailtesting)

Oliver, since you told me you'd like to contribute more to DevTools, would you be interested working on this?

Flags: needinfo?(firefox)

I think it's a very cool idea! I would add the settings in the layout pane, where there already are some flexbox related information, instead of the rule editor.
In my opinion, this would be the better place.

I like the way, the chromium devtools have some icons that explain pretty good what a specific setting would do to the content. There's some room for improvement, but most of them are pretty good.

However, I don't have the skill to design the icons myself, so this would have to be done by someone else.

So yes, if the question about the icons is answered, I would be interested. :)

Flags: needinfo?(firefox)

(In reply to Oliver Schramm [:olifantoliver] from comment #9)

I would add the settings in the layout pane, where there already are some flexbox related information, instead of the rule editor.

I'd argue that the Rules View is more visible than the Layout panel. Though I get that it fits better to the Layout panel.

Does a UI mockup already exist for this? Victoria's design was for a different feature, namely icons within the autocompletion list (for which there is no bug filed yet, I think).

Sebastian

Flags: needinfo?(nchevobbe)

Yeah, I was thinking more of a button directly in the rule view, next to display flex/grid (and who knows, maybe block too now, since align-content will be supported in 125)

Flags: needinfo?(nchevobbe)

(In reply to Oliver Schramm [:olifantoliver] from comment #9)

I like the way, the chromium devtools have some icons that explain pretty good what a specific setting would do to the content. There's some room for improvement, but most of them are pretty good.
However, I don't have the skill to design the icons myself, so this would have to be done by someone else.
So yes, if the question about the icons is answered, I would be interested. :)

Sorry for the late reply Oliver, I was out for a bit.
I can try to provide the icons at some point, I think you can start with just having the empty buttons without any background image so you're not blocked on me :)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: