[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
This commit is contained in:
Xavier BOL (xbo)
2022-04-08 17:13:28 +02:00
parent d1d00c0e4c
commit 44bc52724a
@@ -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}`;
}
}