-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package Dialog layout: two columns #2001
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2001 +/- ##
=======================================
Coverage 46.47% 46.47%
=======================================
Files 332 332
Lines 16532 16532
Branches 2231 2208 -23
=======================================
Hits 7684 7684
Misses 7938 7938
Partials 910 910
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@fiskus maybe just hide it underneath the dialog? (use smaller z-index) bc footer layout takes intercom button placement into account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, but i think we should use more conventional layout for fullscreen dialogs with an appbar on the top with title and buttons (see MUI example). This will also solve the problem with the intercom widget.
Also some comments on the 2-column layout:
-
i think we need more spacing between the columns (it should be larger than spacing between section title and contents)
-
it would be nice to add a title to the first section (tho i'm not sure which one to use) and align the sections better
I don't think it's conventional for desktop, it's more natural for mobile. Note that sections horizontally aligned now. Files bottom is the metadata bottom, when they are empty. FIles bottom is the workflows bottom when they are in maximum height, and workflow is empty. They can't be pixel perfect aligned, because workflows input can have additional description, and because empty Select has less height than filled [1] (I tried to fix it at our side, but I think additional code doesn't worth it) |
It seems that intercom doesn't have API for this. I can add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, definitely better than the previous version, tho i'd explore a material-style fullscreen dialog-based approach too (in another PR ofc).
I don't think it's conventional for desktop, it's more natural for mobile.
it seems like it's quite conventional for material design framework.
anyways, feel free to merge
Also, Material Design spec has a note, that fullscreen dialog is mobile only: https://material.io/components/dialogs#full-screen-dialog |
ok i see |
I moved Intercom widget to the left side because it conflicts with the submit button.