diff --git a/src/zen/common/styles/zen-animations.css b/src/zen/common/styles/zen-animations.css index 1c2bd3c69..ae77e9502 100644 --- a/src/zen/common/styles/zen-animations.css +++ b/src/zen/common/styles/zen-animations.css @@ -18,13 +18,13 @@ @keyframes zen-theme-picker-dot-animation { from { - transform: scale(0.8) translate(-25%, -25%); + transform: scale(0.8) translate(-50%, -50%); } 50% { - transform: scale(1.2) translate(-25%, -25%); + transform: scale(1.2) translate(-50%, -50%); } to { - transform: scale(1) translate(-25%, -25%); + transform: scale(1) translate(-50%, -50%); } } diff --git a/src/zen/workspaces/ZenGradientGenerator.mjs b/src/zen/workspaces/ZenGradientGenerator.mjs index 377765efb..ac5aaf517 100644 --- a/src/zen/workspaces/ZenGradientGenerator.mjs +++ b/src/zen/workspaces/ZenGradientGenerator.mjs @@ -799,8 +799,12 @@ export class nsZenThemePicker extends nsZenMultiWindowFeature { gZenUIManager.motion.animate( existingDot.element, { - left: `${dotPosition.position.x}px`, - top: `${dotPosition.position.y}px`, + left: existingDot.element.style.left + ? [existingDot.element.style.left, `${dotPosition.position.x}px`] + : `${dotPosition.position.x}px`, + top: existingDot.element.style.top + ? [existingDot.element.style.top, `${dotPosition.position.y}px`] + : `${dotPosition.position.y}px`, }, { duration: 0.4, diff --git a/src/zen/workspaces/zen-gradient-generator.css b/src/zen/workspaces/zen-gradient-generator.css index 9f0fd95c5..d609aeaae 100644 --- a/src/zen/workspaces/zen-gradient-generator.css +++ b/src/zen/workspaces/zen-gradient-generator.css @@ -271,9 +271,10 @@ cursor: pointer; border: 3px solid #ffffff; animation: zen-theme-picker-dot-animation 0.5s; - transform: translate(-25%, -25%); + transform: translate(-50%, -50%); pointer-events: none; - transform-origin: center center; + transform-origin: left top; + margin: 10px 0 0 10px; &:first-of-type { width: 38px; @@ -284,7 +285,7 @@ transition: transform 0.2s; z-index: 999; &:hover { - transform: scale(1.05) translate(-25%, -25%); + transform: scale(1.05) translate(-50%, -50%); } }