Skip to content
Snippets Groups Projects
Commit 320970de authored by Benoit Socias's avatar Benoit Socias
Browse files

[FIX] website_payment: adjust size of donation's custom amount button


With some fonts (e.g. Roboto), the placeholder inside the "Custom
Amount" button of the Donation snippet does not fit within the button.

This commit adjusts the maximum width of the button to make it fit
according to the used font and the placeholder text.
The width has to be set from JavaScript because the same issue
arises with different length of translations of the placeholder.

Steps to reproduce:
- Drop a Donation snippet.
- Increase the button text size (change button font, change large
button font size...)

=> Text is not fully drawn inside custom button.

opw-3283549

closes odoo/odoo#121871

Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
parent 98983d19
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment