From d699cac7cab64e868aeee8d88b16e7a76e92e483 Mon Sep 17 00:00:00 2001 From: aidahosa1 Date: Mon, 13 May 2024 16:42:25 -0400 Subject: god is good --- src/client/views/collections/CollectionCardDeckView.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/client/views/collections/CollectionCardDeckView.tsx') diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx index 80159ae38..996c5711b 100644 --- a/src/client/views/collections/CollectionCardDeckView.tsx +++ b/src/client/views/collections/CollectionCardDeckView.tsx @@ -332,7 +332,13 @@ export class CollectionCardView extends CollectionSubView() { return realIndex % 10; } - translateOverflowX(realIndex: number, calcRowCards: number) { + translateOverflowX(realIndex: number, calcIndex: number, calcRowCards: number) { + + let trans = 0; + + // trans += (calcIndex * this.panelWidth()) + this.panelWidth() + + // return trans if (realIndex < this.maxRowCount) { return 0; } @@ -398,10 +404,10 @@ export class CollectionCardView extends CollectionSubView() { width: this.panelWidth(), height: this.panelHeight(childPair.layout)(), transform: ` - rotate(${!isSelected ? this.rotate(amCards, calcRowIndex) : 0}deg) - translateY(${this.calculateTranslateY(isHovered, isSelected, realIndex, amCards, calcRowIndex)}px) - translateX(${isSelected ? this.translateSelected(calcRowIndex) : this.translateOverflowX(realIndex, amCards)}px) - scale(${isSelected ? 1.25 : 1}) + translateY(${this.calculateTranslateY(isHovered, isSelected, realIndex, amCards, calcRowIndex)}px) + translateX(${isSelected ? this.translateSelected(calcRowIndex) : this.translateOverflowX(realIndex, calcRowIndex, amCards)}px) + rotate(${!isSelected ? this.rotate(amCards, calcRowIndex) : 0}deg) + scale(${isSelected ? 1.25 : 1}) `, }} onMouseEnter={() => this.setHoveredNodeIndex(index)}> -- cgit v1.2.3-70-g09d2