Add alignment popup for flex and grid items
Categories
(DevTools :: Inspector, enhancement, P3)
Tracking
(Not tracked)
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)
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Comment 2•4 years ago
|
||
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
Comment 3•4 years ago
•
|
||
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
Comment 4•4 years ago
|
||
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 :)
Updated•4 years ago
|
Updated•4 years ago
|
Comment 5•3 years ago
|
||
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.
Comment 6•3 years ago
|
||
| Comment hidden (off-topic) |
Comment 8•2 years ago
|
||
Oliver, since you told me you'd like to contribute more to DevTools, would you be interested working on this?
Comment 9•2 years ago
|
||
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. :)
Comment 10•2 years ago
|
||
(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
Comment 11•2 years ago
|
||
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)
Comment 12•2 years ago
|
||
(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 :)
Comment 13•1 year ago
|
||
As soon as this is implemented I can finally delete chrome. Please. I beg anyone to add this.
| Assignee | ||
Comment 14•1 year ago
|
||
I'm claiming this bug for myself
Rest assured, Samuel, the day you can delete chrome will come π»
| Assignee | ||
Comment 15•1 year ago
|
||
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
Comment 16•1 year ago
|
||
Victoria, are the icons you created for this still somewhere available, so Artem can use them for his patch?
Sebastian
Comment 17•1 year ago
|
||
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!
| Assignee | ||
Comment 18•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 19•1 year ago
|
||
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.
| Comment hidden (advocacy) |
Comment 21•1 year ago
|
||
as a suggestion/inspiration for icons, I recommend os LUCIDE (which uses MIT license)
Comment 22•1 year ago
|
||
Whoa, thank you, those icons look great!
| Assignee | ||
Comment 23•1 year ago
|
||
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
Comment 24•1 year ago
|
||
(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
| Assignee | ||
Comment 25•1 year ago
|
||
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
| Assignee | ||
Comment 26•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 27•1 year ago
|
||
Comment 28•9 months ago
|
||
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!
| Assignee | ||
Comment 29•9 months ago
|
||
Hi, I can return to it in later February, but if anyone wants to take over in the meantime I don't mind
Description
•