From 75094fce6c49311c7e3089a288f34de3425a5eb4 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Sun, 1 Dec 2024 16:37:52 +0100 Subject: [PATCH] Percentage instead of raw values for items :) --- frontend/components/ItemViewer.vue | 10 +++++----- frontend/components/TreeItem.vue | 7 ++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/components/ItemViewer.vue b/frontend/components/ItemViewer.vue index ec12d15..b756de5 100644 --- a/frontend/components/ItemViewer.vue +++ b/frontend/components/ItemViewer.vue @@ -31,7 +31,7 @@ function trimBuilds(builds : Builds) { -

{{ item.count }}

+

{{ (item.count/builds.tree.count * 100).toFixed(0) }}%

@@ -46,7 +46,7 @@ function trimBuilds(builds : Builds) { -

{{ item.count }}

+

{{ (item.count/builds.tree.count * 100).toFixed(0) }}%

@@ -63,7 +63,7 @@ function trimBuilds(builds : Builds) { -

{{ item.count }}

+

{{ (item.count/builds.tree.count * 100).toFixed(0) }}%

@@ -78,7 +78,7 @@ function trimBuilds(builds : Builds) { -

{{ item.count }}

+

{{ (item.count/builds.tree.count * 100).toFixed(0) }}%

@@ -87,7 +87,7 @@ function trimBuilds(builds : Builds) { -

{{ item.count }}

+

{{ (item.count/builds.tree.count * 100).toFixed(0) }}%

diff --git a/frontend/components/TreeItem.vue b/frontend/components/TreeItem.vue index cb4efac..28346fb 100644 --- a/frontend/components/TreeItem.vue +++ b/frontend/components/TreeItem.vue @@ -1,6 +1,7 @@