[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:
@@ -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}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user