aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-03-21 14:43:08 -0400
committerbobzel <zzzman@gmail.com>2024-03-21 14:43:08 -0400
commit63385a6ba6411ec1ce745c7367bc2c5756c1dec9 (patch)
tree088c3c52d64e99e66455f46221bab1be14aa4940
parent698fbf4c0601824c82c5db231f5bac9880316d51 (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})