From 44bc52724af40d816fb61e0c2bd9ba0807141ec3 Mon Sep 17 00:00:00 2001 From: "Xavier BOL (xbo)" Date: Wed, 6 Apr 2022 07:55:33 +0000 Subject: [PATCH] [IMP] project: add no line break in formatMonetary for right panel Before this commit, when the amount is big the monetary symbol is displayed either above or below the amount associated. This commit replaces the basic space by a no line break space to keep the symbol at the same line than the amount. task-2814466 Part-of: odoo/odoo#88219 --- .../project/static/src/js/right_panel/project_right_panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project/static/src/js/right_panel/project_right_panel.js b/addons/project/static/src/js/right_panel/project_right_panel.js index 1460d4cbc1c..c56c0f952d4 100644 --- a/addons/project/static/src/js/right_panel/project_right_panel.js +++ b/addons/project/static/src/js/right_panel/project_right_panel.js @@ -44,9 +44,9 @@ export default class ProjectRightPanel extends LegacyComponent { return valueFormatted; } if (currency.position === "after") { - return `${valueFormatted} ${currency.symbol}`; + return `${valueFormatted}\u00A0${currency.symbol}`; } else { - return `${currency.symbol} ${valueFormatted}`; + return `${currency.symbol}\u00A0${valueFormatted}`; } }