mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-21 19:41:23 +01:00
Fix for provinces painting patterns over color and color picker now in front of edit window
This commit is contained in:
parent
55a405c4cf
commit
9a7d5ff511
2 changed files with 2 additions and 1 deletions
|
|
@ -43,6 +43,7 @@ input {
|
|||
|
||||
#pickerContainer {
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
input, button, select, a, textarea {
|
||||
|
|
|
|||
|
|
@ -644,7 +644,7 @@ function editProvinces() {
|
|||
const provinceNew = +selected.dataset.id;
|
||||
const state = pack.provinces[provinceNew].state;
|
||||
const fill = pack.provinces[provinceNew].color || "#ffffff";
|
||||
const stroke = d3.color(fill).darker(.2).hex();
|
||||
const stroke = fill.startsWith("#") ? d3.color(fill).darker(.2).hex() : "#000000";
|
||||
|
||||
selection.forEach(i => {
|
||||
if (!pack.cells.state[i] || pack.cells.state[i] !== state) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue