Open Bug 1492056 Opened 8 years ago Updated 18 days ago

Add alignment popup for flex and grid items

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: pbro, Assigned: artemmanusenkov, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed)

Attachments

(3 files, 2 external files, 1 obsolete 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)
Attached image Alignment popup in Chrome β€”

(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 :)

As soon as this is implemented I can finally delete chrome. Please. I beg anyone to add this.

I'm claiming this bug for myself

Rest assured, Samuel, the day you can delete chrome will come πŸ‘»

Attached image prototype without icons β€”

Hi! I made a working prototype for the flexbox editor popup. I'll need to add icons for flex/grild buttons. Nicolas, can you start the process of requesting them from the design folks?

If you think it's going to take very long or we're short on resources, i can try creating the icons myself, mostly copying the style of chrome devtools,. I've never done that but the icons seem very simple

I'll be working on styling&grid popup&tests in the meantime

Flags: needinfo?(nchevobbe)

Victoria, are the icons you created for this still somewhere available, so Artem can use them for his patch?

Sebastian

Flags: needinfo?(victoria)

I found Victoria's figma document where she investigated this, I'll get them back in mozilla-central

Artem, can you push your work in progress patch to phabricator so I can fetch it and apply the icons? Thanks!

Flags: needinfo?(nchevobbe)
Assignee: nobody → artemmanusenkov
Status: NEW → ASSIGNED
Attachment #9471082 - Attachment description: Bug 1492056 - add flex and grid rule editor popup. r=nchevobbe → [WIP] Bug 1492056 - add flex and grid rule editor popup. r=nchevobbe

Exciting to see this happening!

Just wanted to mention that my icons were a draft/incomplete and some of these could be improved - matching chrome's could make sense. I don't have time to work on this but my Figma is public so feel free to clone and modify.

Flags: needinfo?(victoria)

as a suggestion/inspiration for icons, I recommend os LUCIDE (which uses MIT license)

Whoa, thank you, those icons look great!

google's material UI look basically like what they have in chrome devtools, https://fonts.google.com/icons?icon.query=align+&icon.size=24&icon.color=%23e3e3e3, it's definitively prettier than what i've been cooking up. I'll opt to use some of those opensource icons

(In reply to Eduardo from comment #21)

as a suggestion/inspiration for icons, I recommend os LUCIDE (which uses MIT license)

Artem, did you see this comment ^ ?
Might be nice to take those for your patch

Flags: needinfo?(artemmanusenkov)
Attached image firefoxVSchrome.png β€”

hi, nchevobbe@mozilla.com, i decided to take material-ui and chrome devtools icons, so they're the same as chrome now since lucide is incomplete and doesn't have all that is needed, it doesn't have flex-direction, flex-wrap, justify-items for grid.

i'm attaching a screenshot comparison between my popup on the left and chrome on the right. i just need to fix a very annoying weird bug and it'll be done

Flags: needinfo?(artemmanusenkov)
Attachment #9471082 - Attachment is obsolete: true
Attachment #9505621 - Attachment description: [WIP] Bug 1492056 - add flex and grid rule editor popup. r=nchevobbe → Bug 1492056 - add flex and grid rule editor popup. r=nchevobbe

Hello Artem, I was just reminded about your WIP patch
Do you think you have time to update https://phabricator.services.mozilla.com/D260229 , or can someone else take over?
Thanks!

Flags: needinfo?(artemmanusenkov)

Hi, I can return to it in later February, but if anyone wants to take over in the meantime I don't mind

Flags: needinfo?(artemmanusenkov)
Duplicate of this bug: 1747027
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: