-
Notifications
You must be signed in to change notification settings - Fork 6
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
[#1160] Add cropping for profile image #523
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #523 +/- ##
===========================================
- Coverage 96.48% 96.47% -0.01%
===========================================
Files 527 528 +1
Lines 19003 19040 +37
===========================================
+ Hits 18335 18369 +34
- Misses 668 671 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 problem here is really in the file:
src/open_inwoner/scss/components/Form/Form.scss
where this selector is causing multiple problems inside the project, it is selecting everything that is not a button (but...... almost everything is NOT a button anyway.... including DIV's and UL's.... 😳 so it's too generic):
&__control > .label *:not(.button) { width: 100%; }
So my proposal is to replace this with multiple slightly more specific selectors there, like this:
&__control > .label .input,
&__control > .label .input[type='file'] {
width: 100%;
max-width: 100%;
@media (min-width: 768px) {
max-width: 50%;
}
}
I think i have selected all types of form elements here, that should still work in all other pages,
if not, new classes/attributes/wildcards can be added to it: I have also added a mobile-first/media-query
We need to make the forms look smaller on Desktop anyway, like in the design:
https://projects.invisionapp.com/share/UF134RWMWCK8#/screens/471596624
They can be 100% on mobile.
Not using '100vw' here because that may cause horizontal scrolling in some places.
@jiromaykin I have made a partial change-update according to your suggestion because with the change above (width for desktop at 50%) we had some weird results (see screenshots below). If you think we can fix it easily let's do it, otherwise feel free to create another task for updating generally the forms according to the design. |
Thanks for checking even more - I will add this task to my mobile-sprint list, so what you did here is fine for now. |
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.
It'd be neat if the form inputs would render conditionally, so we'd only have the form render logic in once place (the if user.contact_type == "begeleider"
in the form class and not also the template) but that's for another time.
No description provided.