From 71eeebec6f40d334325b46b72768e27eedcea27a Mon Sep 17 00:00:00 2001 From: Daniele Franceschi Date: Mon, 26 Mar 2018 14:48:13 +0200 Subject: [PATCH] fix rendering suffix for >1GB images --- src/ui_ng/lib/src/tag/tag.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui_ng/lib/src/tag/tag.component.ts b/src/ui_ng/lib/src/tag/tag.component.ts index c75438967..2e68f4bce 100644 --- a/src/ui_ng/lib/src/tag/tag.component.ts +++ b/src/ui_ng/lib/src/tag/tag.component.ts @@ -442,7 +442,7 @@ export class TagComponent implements OnInit, AfterViewInit { } else if (Math.pow(1024, 2) <= size && size < Math.pow(1024, 3)) { return (size / Math.pow(1024, 2)).toFixed(2) + "MB"; } else if (Math.pow(1024, 3) <= size && size < Math.pow(1024, 4)) { - return (size / Math.pow(1024, 3)).toFixed(2) + "MB"; + return (size / Math.pow(1024, 3)).toFixed(2) + "GB"; } else { return size + "B"; }