Hot fix: Multi dimensionnal array was static. Changed favicon.

This commit is contained in:
Yohan Boujon 2024-02-12 00:54:43 +01:00
parent dc3fb116d1
commit 2c67917f72
2 changed files with 21 additions and 18 deletions

View file

@ -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;
}
@ -226,7 +227,9 @@
>
<SvgIcon
type="mdi"
path={pillShowMore[index] === true ? mdiArrowDown : mdiArrowUp}
path={pillShowMore[index] === true
? mdiArrowDown
: mdiArrowUp}
size="20"
/>
<p>{text.more}</p>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB