diff --git a/frontend/src/routes/(authenticated)/project/[project_code]/+page.svelte b/frontend/src/routes/(authenticated)/project/[project_code]/+page.svelte index 4c8cbb9503..882fba2173 100644 --- a/frontend/src/routes/(authenticated)/project/[project_code]/+page.svelte +++ b/frontend/src/routes/(authenticated)/project/[project_code]/+page.svelte @@ -107,6 +107,10 @@ void updateRepoSize(); } + function sizeStrInMb(sizeInKb: number): string { + return `${$number(sizeInKb / 1024, {maximumFractionDigits: 1})} MB`; + } + let loadingEntryCount = false; async function updateEntryCount(): Promise { loadingEntryCount = true; @@ -415,7 +419,7 @@ {:else} - + {/if} {#if project.type === ProjectType.FlEx || project.type === ProjectType.WeSay}