mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 14:09:43 -08:00
fix parallaxing issue
This commit is contained in:
parent
87454484b2
commit
196286dd9e
|
@ -417,10 +417,12 @@ export default mixins(
|
|||
};
|
||||
},
|
||||
backgroundStyle (): object {
|
||||
const scale = this.nodeViewScale;
|
||||
const offsetPosition = this.$store.getters.getNodeViewOffsetPosition;
|
||||
return {
|
||||
'transform': `scale(${this.nodeViewScale})`,
|
||||
'background-position': `right ${-offsetPosition[0]}px bottom ${-offsetPosition[1]}px`,
|
||||
'background-size': `${50 * scale}px ${50 * scale}px`,
|
||||
'background-position': `left ${offsetPosition[0]}px top ${offsetPosition[1]}px`,
|
||||
'background-image': `radial-gradient(circle at ${3 * scale}px ${3 * scale}px, #C5CDD3 ${3 * scale}px, transparent 1px)`,
|
||||
};
|
||||
},
|
||||
workflowClasses () {
|
||||
|
@ -2691,10 +2693,6 @@ export default mixins(
|
|||
position: absolute;
|
||||
width: 10000px;
|
||||
height: 10000px;
|
||||
top: -5000px;
|
||||
left: -5000px;
|
||||
background-size: 50px 50px;
|
||||
background-image: radial-gradient(circle at 3px 3px, #C5CDD3 3px, transparent 1px);;
|
||||
}
|
||||
|
||||
.move-active {
|
||||
|
|
Loading…
Reference in a new issue