Frontend: Keeping the timeline visible after an index change.
This commit is contained in:
parent
26443d63ea
commit
407200e2b8
2 changed files with 1 additions and 8 deletions
|
@ -108,12 +108,6 @@
|
|||
if (slideshowTimeline[id] != undefined) {
|
||||
slideshowTimeline[id].style.transform =
|
||||
`translateX(-${transformValue}px)`;
|
||||
if (slideshow_hidden.includes(id)) {
|
||||
slideshowTimeline[id].style.backgroundColor =
|
||||
"var(--color-background)";
|
||||
} else {
|
||||
slideshowTimeline[id].style.backgroundColor = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -128,7 +122,6 @@
|
|||
}
|
||||
if (timeline) {
|
||||
for (const timeline of slideshowTimeline) {
|
||||
timeline.style.backgroundColor = "";
|
||||
timeline.style.transform = "";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
border-radius: 0.4rem;
|
||||
box-shadow: 0px 20px 50px -10px rgba(0, 0, 0, 0.2);
|
||||
background-color: var(--color-background);
|
||||
min-height: 30rem;
|
||||
height: 32rem;
|
||||
width: 90dvw;
|
||||
margin-left: 5dvw;
|
||||
z-index: 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue