Openfoodnetwork: white space on "Display as" row (on products/new)

Created on 2 Feb 2021  路  6Comments  路  Source: openfoodfoundation/openfoodnetwork

Description


A white space on "Display as" row (on products/new) was spotted when testing #6788.

Steps to Reproduce




  1. visit /admin/products/new

Animated Gif/Screenshot


image.png

Also seen on narrower windows:
image

and Mobile:
Peek 2021-02-02 11-09

Workaround

Severity

s5

Your Environment

  • Version used: v3.4.6
  • Browser name and version: Across browsers and devices
bug-s5

Most helpful comment

I'm a bit concerned we are starting to consider mobile in the back office. If so there is a lot to take into account and I feel this space is not the main priority? But that's really only my opinion. Given you have some time @jibees I let you decide what you think is best.

Also - but this will need another issue. What stroke my eye was that the image placeholder is not centered anymore:

image

FYI, how the page looked before:

image

All 6 comments

The thing is I'm not sure what to put in this white space. If the work on unit prices goes into the admin as well this space will be used.
Do we have an idea how to do it? ping @jibees

I'm sorry, I though I was clear when creating the PR https://github.com/openfoodfoundation/openfoodnetwork/pull/6788#issue-565280820

Actually, there's a space after "Display as" to let the space available for "Unit Name" field as you can see here:
106480833-1ab2a580-64ac-11eb-9120-9a37445b1b2e

However It should be possible to hide this space when the field is not present (can be useful on small screen).

Thank you for stressing this out @jibees .

While testing it, it felt like a regression to me, especially in mobile.

Also, this concerns potentially mandatory fields - I realize I should have been more explicit about this, on my "description" in this issue, sorry for that.

However It should be possible to hide this space when the field is not present (can be useful on small screen).

I totally agree with the solution you propose, if you find this feasible.

But if it is temporary and we are fine with this, we can as well choose to close this issue. What do you think @RachL @jibees ?

I'm a bit concerned we are starting to consider mobile in the back office. If so there is a lot to take into account and I feel this space is not the main priority? But that's really only my opinion. Given you have some time @jibees I let you decide what you think is best.

Also - but this will need another issue. What stroke my eye was that the image placeholder is not centered anymore:

image

FYI, how the page looked before:

image

I'm a bit concerned we are starting to consider mobile in the back office. If so there is a lot to take into account and I feel this space is not the main priority? But that's really only my opinion.

I totally agree, but let's start there, no? It should not take that long.
We need a global reflexion on how we handle mobile/small screen devices cases. I think we should be able to have such a things : https://tailwindcomponents.com/component/form-grid

@RachL @filipefurtad0 Sorry, I was totally confused: I thought that these two fields (Display As and Unit Names) could exist at the same time, next to each other. In fact, they are never displayed at the same time.... So sorry. 馃槉

Was this page helpful?
0 / 5 - 0 ratings