fix: [UI] uuid length for the display fixed

feature/analyst-data
iglocska 2024-01-04 12:23:44 +01:00
parent 160d7442ff
commit 22c413059f
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<?php
$uuidHalfWidth = 3;
$shortUUID = sprintf('%s...%s', substr($uuid, 0, $uuidHalfWidth), substr($uuid, 30-$uuidHalfWidth, $uuidHalfWidth));
$shortUUID = sprintf('%s...%s', substr($uuid, 0, $uuidHalfWidth), substr($uuid, 36-$uuidHalfWidth, $uuidHalfWidth));
$notes = !empty($notes) ? $notes : [];
$object_type = !empty($object_type) ? $object_type : null;
echo sprintf('<span title="%s">%s</span>', $uuid, $shortUUID);