Skip to content
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

New Product Form: Fill all space available #6807

Conversation

jibees
Copy link
Contributor

@jibees jibees commented Feb 3, 2021

What? Why?

Closes #6798
Use all available space to display these two fields as they are mutually exclusive.

What should we test?

  1. Go to /admin/products/new
  2. Select Items value for UNIT SIZE field: there is no unused space on this line
  3. Select whatever value for UNIT SIZE field: there is no unused space on this line

Capture d’écran 2021-02-03 à 21 41 30

Capture d’écran 2021-02-03 à 21 41 35

Release notes

Fix a margin issue on new product form.

Changelog Category: User facing changes

These two fields (Display As, and Unit Names) are mutually exclusive: they are never displayed at the same time. Use all the available space.
@filipefurtad0 filipefurtad0 self-assigned this Feb 4, 2021
@filipefurtad0 filipefurtad0 added the pr-staged-uk staging.openfoodnetwork.org.uk label Feb 4, 2021
@filipefurtad0
Copy link
Contributor

Thanks @jibees ,

I think it looks better this way, at least while there are no further changes to this page:

image

image

Looks good on desktop as well:

Peek 2021-02-04 19-08

Ready to go!

@filipefurtad0 filipefurtad0 removed the pr-staged-uk staging.openfoodnetwork.org.uk label Feb 4, 2021
@sauloperez sauloperez merged commit 35a76a3 into openfoodfoundation:master Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

white space on "Display as" row (on products/new)
3 participants