From bdc8db2354b581be6bd1e899009f4af4be68b8ce Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 4 Apr 2020 20:12:04 +0300 Subject: [PATCH] v1.3.43 --- index.css | 4 +--- modules/ui/editors.js | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/index.css b/index.css index e6d6dd43..8256b833 100644 --- a/index.css +++ b/index.css @@ -1507,9 +1507,7 @@ rect.fillRect { } #pickerSpaces input { - height: 8px; - width: 16px; - text-align: center; + width: 22px; font-size: 9px; -moz-appearance: textfield; } diff --git a/modules/ui/editors.js b/modules/ui/editors.js index 802692f9..a14cbd12 100644 --- a/modules/ui/editors.js +++ b/modules/ui/editors.js @@ -309,7 +309,7 @@ function createPicker() { const contaiter = d3.select("body").append("svg").attr("id", "pickerContainer").attr("width", "100%").attr("height", "100%"); contaiter.append("rect").attr("x", 0).attr("y", 0).attr("width", "100%").attr("height", "100%").attr("opacity", .2) .on("mousemove", cl).on("click", closePicker); - const picker = contaiter.append("g").attr("id", "picker").call(d3.drag().on("start", dragPicker)); + const picker = contaiter.append("g").attr("id", "picker").call(d3.drag().filter(() => event.target.tagName !== "INPUT").on("start", dragPicker)); const controls = picker.append("g").attr("id", "pickerControls"); const h = controls.append("g"); @@ -347,7 +347,7 @@ function createPicker() { , - `; + `; spaces.node().insertAdjacentHTML('beforeend', html); spaces.selectAll("input").on("change", changePickerSpace);