Skip to content
Snippets Groups Projects
Commit c6ffc495 authored by Victor Ekholt Gunrell Kaste's avatar Victor Ekholt Gunrell Kaste
Browse files

Merge branch 'savings-target-creation' into 'main'

feat: Made it so only one panel can be opened at a time on roadmap.

See merge request !15
parents b8636a5f fe125bb9
No related branches found
No related tags found
1 merge request!15feat: Made it so only one panel can be opened at a time on roadmap.
Pipeline #274362 failed
......@@ -25,7 +25,16 @@ export default {
},
methods: {
togglePanel(step: Step) {
step.showPanel = !step.showPanel;
if (step.showPanel) {
// If the clicked panel is already open, close it
step.showPanel = false;
} else {
//Close all panels before opening new one
//Ensure only one panel open at a time
this.steps.forEach((s) => (s.showPanel = false));
//Open clicked on panel
step.showPanel = true;
}
},
},
};
......@@ -96,14 +105,14 @@ export default {
.timeline>li:nth-child(even) {
position: relative;
margin-bottom: 50px;
height: 180px;
height: 100px;
right:-100px;
}
.timeline>li:nth-child(odd) {
position: relative;
margin-bottom: 50px;
height: 180px;
height: 100px;
left:-100px;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment