mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 22:19:41 -08:00
update dot grid
This commit is contained in:
parent
36c9f7ab5b
commit
b9831428f4
|
@ -419,16 +419,17 @@ export default mixins(
|
|||
backgroundStyle (): object {
|
||||
const scale = this.nodeViewScale;
|
||||
const offsetPosition = this.$store.getters.getNodeViewOffsetPosition;
|
||||
const squareSize = 50 * scale;
|
||||
const dotSize = 3 * scale;
|
||||
const squareSize = 20 * scale;
|
||||
const dotSize = 1 * scale;
|
||||
const dotPosition = 10 * scale;
|
||||
const styles: object = {
|
||||
'background-size': `${squareSize}px ${squareSize}px`,
|
||||
'background-position': `left ${offsetPosition[0]}px top ${offsetPosition[1]}px`,
|
||||
};
|
||||
if (squareSize > 3) {
|
||||
if (squareSize > 10) {
|
||||
return {
|
||||
...styles,
|
||||
'background-image': `radial-gradient(circle at ${dotSize}px ${dotSize}px, #C5CDD3 ${dotSize}px, transparent 1px)`,
|
||||
'background-image': `radial-gradient(circle at ${dotPosition}px ${dotPosition}px, #D4DADE ${dotSize}px, transparent 0)`,
|
||||
};
|
||||
}
|
||||
return styles;
|
||||
|
|
Loading…
Reference in a new issue