diff --git a/src/App.vue b/src/App.vue index e0b018f3..dbe2c449 100644 --- a/src/App.vue +++ b/src/App.vue @@ -702,6 +702,13 @@ body { width: 100%; height: 100%; + background-color: rgb(39, 39, 39); + color: #fff; + } + + * { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + font-size: 12px; } #app { @@ -719,8 +726,9 @@ #contextMenu { position: absolute; z-index: 1000; - background: white; + background: rgb(16,16,16); border: 1px solid black; + border-radius: 5px; padding: 5px; margin: 0; @@ -728,7 +736,9 @@ &.label { color: gray; font-size: 90%; + cursor: default; } + cursor: pointer; list-style: none; } diff --git a/src/components/VueBlock.vue b/src/components/VueBlock.vue index a074c7ec..7527a8d9 100644 --- a/src/components/VueBlock.vue +++ b/src/components/VueBlock.vue @@ -149,8 +149,8 @@ this.$emit('delete') }, moveWithDiff (diffX, diffY) { - let left = this.x + diffX / this.options.scale - let top = this.y + diffY / this.options.scale + let left = Math.round(this.x + diffX / this.options.scale) + let top = Math.round(this.y + diffY / this.options.scale) this.$emit('update:x', left) this.$emit('update:y', top) @@ -177,39 +177,45 @@