3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 23:45:25 +00:00

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(),
'unit' => $label->getUnit(),
'width' => $label->getWidth(),
'height' => $label->getHeight(),
'width' => number_format($label->getWidth(), 2),
'height' => number_format($label->getHeight(), 2),
'margin_top' => $label->getMarginTop(),
'margin_bottom' => $label->getMarginBottom(),