Fix file versions for api flies [SCI-11288]

This commit is contained in:
Anton 2024-11-15 14:03:14 +01:00
parent abe4336eef
commit 718fafdec8

View file

@ -32,7 +32,9 @@
</div> </div>
<div class="flex text-xs text-sn-grey justify-start"> <div class="flex text-xs text-sn-grey justify-start">
<div class="mr-3">{{ fileVersion.attributes.created_at }}</div> <div class="mr-3">{{ fileVersion.attributes.created_at }}</div>
<div class="mr-3 text-nowrap text-ellipsis overflow-hidden max-w-52">{{ fileVersion.attributes.created_by.full_name }}</div> <div v-if="fileVersion.attributes.created_by" class="mr-3 text-nowrap text-ellipsis overflow-hidden max-w-52">
{{ fileVersion.attributes.created_by.full_name }}
</div>
<div>{{ i18n.t("assets.file_versions_modal.size") }}: {{ Math.round(fileVersion.attributes.byte_size/1024) }}KB</div> <div>{{ i18n.t("assets.file_versions_modal.size") }}: {{ Math.round(fileVersion.attributes.byte_size/1024) }}KB</div>
</div> </div>
</div> </div>