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

[FIX] base_vat: properly display in context #159332

Closed

Conversation

wtaferner
Copy link
Contributor

Description of the issue/feature this PR addresses:
Having the VAT VIES Check valid field directly next to the VAT number as an inline element becomes unreadable, so we add a line break before

Current behavior before PR:
Screenshot from 2024-03-26 15-26-06

Desired behavior after PR is merged:
image

Info: @wt-io-it


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo
Copy link
Contributor

robodoo commented Mar 26, 2024

@C3POdoo C3POdoo requested review from a team and casp-odoo and removed request for a team March 26, 2024 14:39
Copy link
Contributor

@william-andre william-andre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is something wrong with the current 17.0, but I don't believe that the current fix is the right one.
image

We shouldn't force a new line, but add some padding instead between the two fields, and it shouldn't be possible to have the checkbox on a different line than its label.
But to avoid wasting space (since the VAT field is never that long), we don't need to always have a new line; only when the screen size asks for it.

What I would suggest is putting the label and the field inside of a <span class="text-nowrap ps-2"/> allowing for

  • a dynamic display based on the size of the screen
  • enforce the label and the field to always be on the same line
  • always keep a minimal space between the vat field and the checkbox field

@wtaferner wtaferner force-pushed the 17.0-fix_vies_valid_display-wt branch from c89801c to 3613a48 Compare April 3, 2024 14:06
@wtaferner
Copy link
Contributor Author

@william-andre
thx, works for me and indeed a good solution to get this fix done...

Having the VAT VIES Check valid field directly next to the VAT number
as an inline element becomes unreadable, so we wrap it add padding and text-nowrap
@wtaferner wtaferner force-pushed the 17.0-fix_vies_valid_display-wt branch from 3613a48 to 807da18 Compare April 3, 2024 14:30
Copy link
Contributor

@william-andre william-andre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robodoo robodoo closed this in f62d35e Apr 3, 2024
willylohws pushed a commit to willylohws/odoo that referenced this pull request May 1, 2024
Having the VAT VIES Check valid field directly next to the VAT number
as an inline element becomes unreadable, so we wrap it add padding and text-nowrap

closes odoo#159332

Signed-off-by: William André (wan) <wan@odoo.com>
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.

None yet

5 participants