use number format to constrain large number displays

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-08-18 22:18:09 +01:00
parent 1e82c2bfad
commit ffc7c4e99a

View file

@ -26,8 +26,8 @@ class LabelsTransformer
'name' => $label->getName(), 'name' => $label->getName(),
'unit' => $label->getUnit(), 'unit' => $label->getUnit(),
'width' => $label->getWidth(), 'width' => number_format($label->getWidth(), 2),
'height' => $label->getHeight(), 'height' => number_format($label->getHeight(), 2),
'margin_top' => $label->getMarginTop(), 'margin_top' => $label->getMarginTop(),
'margin_bottom' => $label->getMarginBottom(), 'margin_bottom' => $label->getMarginBottom(),