diff options
| author | Laurent Stukkens (LTU) <ltu@odoo.com> | 2020-06-15 14:33:30 +0000 |
|---|---|---|
| committer | Laurent Stukkens (LTU) <ltu@odoo.com> | 2020-06-18 09:35:41 +0000 |
| commit | c27228d95ef24b382381ae0d205311008c6aaa34 (patch) | |
| tree | 1974e2ac095215ff2fbaa02a00da58b4a322ead6 /addons/web/static/src/xml | |
| parent | 2feaee191bbbef33c9a6eb99a96592669f17f729 (diff) | |
[FIX] web: place the notification close button to the right end
Prior to this commit the close button of the notification is wrongly
placed when no title is provided.
Applying this commit places the close button at the right end. This commit also
modifies the size of the buttons to btn-sm.
task-2277737
Fixes #52229
closes odoo/odoo#53219
X-original-commit: caa3f1107ddaa4cdf6878f4532632a41bc710862
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/notification.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/notification.xml b/addons/web/static/src/xml/notification.xml index 42aab39f889..a6cb930b55b 100644 --- a/addons/web/static/src/xml/notification.xml +++ b/addons/web/static/src/xml/notification.xml @@ -24,10 +24,9 @@ class="o_notification_subtitle"/> <div t-if="widget.message" t-raw="widget.message" class="mr-auto o_notification_content"/> - <t t-if="!widget.title" t-raw="closeButton"/> <div t-if="widget.buttons.length" class="mt-2 o_notification_buttons"> <button t-foreach="widget.buttons" t-as="button" type="button" - t-attf-class="btn #{button.primary ? 'btn-primary' : 'btn-secondary'}"> + t-attf-class="btn btn-sm #{button.primary ? 'btn-primary' : 'btn-secondary'}"> <t t-if="button.icon"> <i t-if="button.icon.indexOf('fa-') === 0" t-attf-class="fa fa-fw o_button_icon #{button.icon}" role="img" t-att-aria-label="button.name" t-att-title="button.name"/> <img t-else="" t-att-src="button.icon" t-att-alt="button.name"/> @@ -35,6 +34,7 @@ <span t-esc="button.text"/> </button> </div> + <t t-if="!widget.title" t-raw="closeButton"/> </div> </div> </t> |
