-
- Downloads
[FIX] web_editor, *: review icon buttons sizing and paddings
*: mass_mailing, website, website_sale Before this commit, it was impossible to add `fa-fw` directly on a `we-button` as it would make the icon half invisible, since the whole `we-button` would have the font-awesome `.fa-fw` css rule applied on it; width: ~1.28em. Then, one would need to insert a `<i/>` tag inside the `we-button` for it to work. This commit improves that behavior by handling automatically such cases, and will preserve the purpose of the `fa-fw` class which is to have a fixed width for those icons. Note that the util class introduced in [1] (o_we_button_icon renamed here in o_we_icon_button) is still useful to handle the case of svg images, they are not allowed to shrink, the same way the fa buttons are. [1]: https://github.com/odoo/odoo/commit/e4233643b93b521454cc146c6a2ae876781fb9ba Related to task-2172311 closes odoo/odoo#77980 X-original-commit: e8ab9d76 Signed-off-by:Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by:
Younn Olivier <yol@odoo.com> Co-authored-by:
qsm-odoo <qsm@odoo.com>
Showing
- addons/mass_mailing/views/snippets/s_hr.xml 3 additions, 3 deletionsaddons/mass_mailing/views/snippets/s_hr.xml
- addons/mass_mailing/views/snippets_themes.xml 6 additions, 6 deletionsaddons/mass_mailing/views/snippets_themes.xml
- addons/web_editor/static/src/js/editor/snippets.options.js 13 additions, 10 deletionsaddons/web_editor/static/src/js/editor/snippets.options.js
- addons/web_editor/static/src/scss/wysiwyg_snippets.scss 18 additions, 5 deletionsaddons/web_editor/static/src/scss/wysiwyg_snippets.scss
- addons/web_editor/static/src/xml/snippets.xml 1 addition, 3 deletionsaddons/web_editor/static/src/xml/snippets.xml
- addons/web_editor/views/snippets.xml 12 additions, 17 deletionsaddons/web_editor/views/snippets.xml
- addons/website/static/src/snippets/s_website_form/options.js 1 addition, 4 deletionsaddons/website/static/src/snippets/s_website_form/options.js
- addons/website/views/snippets/s_embed_code.xml 3 additions, 3 deletionsaddons/website/views/snippets/s_embed_code.xml
- addons/website/views/snippets/s_hr.xml 3 additions, 3 deletionsaddons/website/views/snippets/s_hr.xml
- addons/website/views/snippets/s_image_gallery.xml 4 additions, 4 deletionsaddons/website/views/snippets/s_image_gallery.xml
- addons/website/views/snippets/s_table_of_content.xml 3 additions, 3 deletionsaddons/website/views/snippets/s_table_of_content.xml
- addons/website/views/snippets/s_tabs.xml 5 additions, 5 deletionsaddons/website/views/snippets/s_tabs.xml
- addons/website/views/snippets/snippets.xml 19 additions, 30 deletionsaddons/website/views/snippets/snippets.xml
- addons/website_sale/views/snippets/snippets.xml 2 additions, 2 deletionsaddons/website_sale/views/snippets/snippets.xml
Loading
Please register or sign in to comment