From 2c7382855f497989728e9811eaf5bfd293575cf1 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Wed, 1 Dec 2021 19:20:25 +0100 Subject: [PATCH] add item composition under log days. --- svelte-ui/src/components/ItemProgress.svelte | 154 +++++++++++++------ svelte-ui/src/components/ProjectEntry.svelte | 2 +- svelte-ui/src/pages/LogsPage.svelte | 2 + 3 files changed, 108 insertions(+), 50 deletions(-) diff --git a/svelte-ui/src/components/ItemProgress.svelte b/svelte-ui/src/components/ItemProgress.svelte index 27d0565..4d81bbc 100644 --- a/svelte-ui/src/components/ItemProgress.svelte +++ b/svelte-ui/src/components/ItemProgress.svelte @@ -1,5 +1,6 @@
- {#each list as entry (entry.item.id)} -
-
- -
-
- {entry.item.name} -
- {#if entry.target !== 0} -
- {entry.amount} - / - {entry.target} - {#if entry.extras > 0} - + {entry.extras} - {/if} -
- - {:else} -
- ×{entry.extras} +
3}> + {#each list as entry (entry.item.id)} +
+ {#if entry.noTarget} +
+ {entry.amount}× +
+ {:else} +
+ +
+ {/if} +
+ {entry.item.name}
- {/if} -
- {/each} + {#if entry.target !== 0} +
+ {entry.amount} + / + {entry.target} + {#if entry.extras > 0} + + {entry.extras} + {/if} +
+ {:else if !entry.noTarget} +
+ ×{entry.extras} +
+ {/if} +
+ {/each} +