From 5dc2af38c3b1983fc8166b3da5a210cec3698ecf Mon Sep 17 00:00:00 2001 From: Cocographique Date: Tue, 3 Mar 2020 10:30:38 +0000 Subject: [PATCH] [IMP] website: reduce space between icons in Rating snippet Part of https://github.com/odoo/odoo/pull/46809 task-2182909 --- addons/website/static/src/snippets/s_rating/options.js | 6 +++--- addons/website/views/snippets/s_rating.xml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/website/static/src/snippets/s_rating/options.js b/addons/website/static/src/snippets/s_rating/options.js index 2a640ea3ec0..b24d7daf9f6 100644 --- a/addons/website/static/src/snippets/s_rating/options.js +++ b/addons/website/static/src/snippets/s_rating/options.js @@ -46,7 +46,7 @@ options.registry.Rating = options.Class.extend({ this._saving = false; dialog.on('save', this, function (attachments) { this._saving = true; - const customClass = 'fa fa-fw ' + attachments.className; + const customClass = 'fa ' + attachments.className; const $activeIcons = this.$target.find('.s_rating_active_icons > i'); const $inactiveIcons = this.$target.find('.s_rating_inactive_icons > i'); const $icons = params.customActiveIcon === 'true' ? $activeIcons : $inactiveIcons; @@ -140,8 +140,8 @@ options.registry.Rating = options.Class.extend({ 'fa-square': 'fa-square-o', 'fa-heart': 'fa-heart-o' }; - const faClassActiveIcons = (this.iconType === "custom") ? this.faClassActiveCustomIcons : 'fa fa-fw ' + this.iconType; - const faClassInactiveIcons = (this.iconType === "custom") ? this.faClassInactiveCustomIcons : 'fa fa-fw ' + icons[this.iconType]; + const faClassActiveIcons = (this.iconType === "custom") ? this.faClassActiveCustomIcons : 'fa ' + this.iconType; + const faClassInactiveIcons = (this.iconType === "custom") ? this.faClassInactiveCustomIcons : 'fa ' + icons[this.iconType]; const $activeIcons = this.$target.find('.s_rating_active_icons > i'); const $inactiveIcons = this.$target.find('.s_rating_inactive_icons > i'); $activeIcons.removeClass().addClass(faClassActiveIcons); diff --git a/addons/website/views/snippets/s_rating.xml b/addons/website/views/snippets/s_rating.xml index b9b29d8d5f3..25d4e133b8b 100644 --- a/addons/website/views/snippets/s_rating.xml +++ b/addons/website/views/snippets/s_rating.xml @@ -6,13 +6,13 @@

Quality

- - - + + + - - + +