Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/empty-olives-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@flowbase-co/boosters-carousel-ticker': patch
---

Bump Booster package version to 1.2.0
2 changes: 1 addition & 1 deletion apps/carousel-ticker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"vite": "^4.2.1"
},
"dependencies": {
"@flowbase-co/booster": "1.0.1"
"@flowbase-co/booster": "1.2.0"
}
}
17 changes: 9 additions & 8 deletions apps/carousel-ticker/src/lib/carousel-ticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,18 @@ const carouselTickerBooster = new Booster.Booster<
let duplicateCount = getDuplicateCount()

const duplicateNodes = (count: number) => {
const additionalNodes: HTMLElement[][] = Array(count).fill([])
const additionalNodes: HTMLElement[][] = Array.from(
{ length: count },
() => {
return contentChildNodes.map((node) => {
const clonedNode = node.cloneNode(true) as HTMLElement

for (let index = 0; index < count; index++) {
for (const node of contentChildNodes) {
const clonedNode = node.cloneNode(true) as HTMLElement
clonedNode.setAttribute('aria-hidden', 'true')

clonedNode.setAttribute('aria-hidden', 'true')

additionalNodes[index].push(clonedNode)
return clonedNode
})
}
}
)

for (const node of additionalNodes.flat()) contentEl.appendChild(node)
}
Expand Down
12 changes: 10 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.