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
Conversation
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.
There is something wrong with the current 17.0, but I don't believe that the current fix is the right one.
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
c89801c
to
3613a48
Compare
@william-andre |
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
3613a48
to
807da18
Compare
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.
@robodoo r+
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>
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:
Desired behavior after PR is merged:
Info: @wt-io-it
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr