aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-03-21 14:43:08 -0400
committeraidahosa1 <aisosa_idahosa@brown.edu>2024-04-04 04:24:18 -0400
commit10f6780728ca83d76a058552ba7023c4a5c881b5 (patch)
treef499215ee2b12fe797837a895762b8b7dd79a0f9
parent268c4487aab34c8bef51df87953d83b968864fc4 (diff)
from last
-rw-r--r--src/client/views/collections/CollectionCardDeckView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx
index e923f9a72..b636b878e 100644
--- a/src/client/views/collections/CollectionCardDeckView.tsx
+++ b/src/client/views/collections/CollectionCardDeckView.tsx
@@ -28,7 +28,7 @@ export class CollectionCardView extends CollectionSubView() {
translateHover = (index: number): number => {
if (this.hoveredNodeIndex == index && !this.isSelected(index)) {
- return -50;
+ return -50 * this.fitContentScale;
}
return 0;
};
@@ -203,7 +203,7 @@ export class CollectionCardView extends CollectionSubView() {
height: this.panelHeight(childPair.layout)(),
transform: `
rotate(${!isSelected ? this.rotate(amCards, inactiveIndex) : 0}deg)
- translateY(${isHovered ? this.translateHover(index) : isSelected ? 50 : 0}px)
+ translateY(${isHovered ? this.translateHover(index) : isSelected ? 50 * this.fitContentScale : 0}px)
translateX(${isSelected ? (this._props.PanelWidth() / 2) * this.fitContentScale - this.childDocumentWidth / 2 : 0}px)
scale(${isSelected ? 1.25 : 1})