diff --git a/frontend/src/routes/lang=[lang]/+page.svelte b/frontend/src/routes/lang=[lang]/+page.svelte index 7e06007..1f6a8e9 100644 --- a/frontend/src/routes/lang=[lang]/+page.svelte +++ b/frontend/src/routes/lang=[lang]/+page.svelte @@ -81,8 +81,11 @@ // More pill handler let pillShowMore = []; - let pillInstances = [[], []]; - $: pillActualIndex=0; + let pillInstances = new Array(); + for (let i = 0; i < cv.skills.length; i++) { + pillInstances[i] = new Array(); + } + async function moreHandler(id) { if (pillShowMore[id] === true) { // show Less @@ -99,11 +102,9 @@ } } - function needMore(skill) - { - for(const s of skill) - { - if(!s.is_shown) return true; + function needMore(skill) { + for (const s of skill) { + if (!s.is_shown) return true; } return false; } @@ -220,17 +221,19 @@ {/if} {/each} {#if needMore(skill)} - + {/if}