mirror of
https://github.com/zen-browser/desktop.git
synced 2025-12-17 03:45:33 +00:00
fix: Fixed incorrect dot possition and scaling, b=no-bug, c=common, workspaces
This commit is contained in:
@@ -18,13 +18,13 @@
|
|||||||
|
|
||||||
@keyframes zen-theme-picker-dot-animation {
|
@keyframes zen-theme-picker-dot-animation {
|
||||||
from {
|
from {
|
||||||
transform: scale(0.8) translate(-25%, -25%);
|
transform: scale(0.8) translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
50% {
|
50% {
|
||||||
transform: scale(1.2) translate(-25%, -25%);
|
transform: scale(1.2) translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
to {
|
to {
|
||||||
transform: scale(1) translate(-25%, -25%);
|
transform: scale(1) translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -799,8 +799,12 @@ export class nsZenThemePicker extends nsZenMultiWindowFeature {
|
|||||||
gZenUIManager.motion.animate(
|
gZenUIManager.motion.animate(
|
||||||
existingDot.element,
|
existingDot.element,
|
||||||
{
|
{
|
||||||
left: `${dotPosition.position.x}px`,
|
left: existingDot.element.style.left
|
||||||
top: `${dotPosition.position.y}px`,
|
? [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,
|
duration: 0.4,
|
||||||
|
|||||||
@@ -271,9 +271,10 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 3px solid #ffffff;
|
border: 3px solid #ffffff;
|
||||||
animation: zen-theme-picker-dot-animation 0.5s;
|
animation: zen-theme-picker-dot-animation 0.5s;
|
||||||
transform: translate(-25%, -25%);
|
transform: translate(-50%, -50%);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transform-origin: center center;
|
transform-origin: left top;
|
||||||
|
margin: 10px 0 0 10px;
|
||||||
|
|
||||||
&:first-of-type {
|
&:first-of-type {
|
||||||
width: 38px;
|
width: 38px;
|
||||||
@@ -284,7 +285,7 @@
|
|||||||
transition: transform 0.2s;
|
transition: transform 0.2s;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
&:hover {
|
&:hover {
|
||||||
transform: scale(1.05) translate(-25%, -25%);
|
transform: scale(1.05) translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user