From 3ce0481a495ed01fb6f15e945efd0a2302de949b Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 19 Mar 2023 14:39:48 +0400 Subject: [PATCH] feat(religions editor): enhance UI paddings --- modules/dynamic/editors/religions-editor.js | 66 ++++++++++----------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/modules/dynamic/editors/religions-editor.js b/modules/dynamic/editors/religions-editor.js index 94abd84e..46e50f24 100644 --- a/modules/dynamic/editors/religions-editor.js +++ b/modules/dynamic/editors/religions-editor.js @@ -23,7 +23,7 @@ export function open() { function insertEditorHtml() { const editorHtml = /* html */ `
-
+
Religion 
Type 
Form 
@@ -177,7 +177,7 @@ function religionsEditorAddLines() { data-expansion="" data-expansionism="" > - + -
${si(area) + unit}
+
${si(area) + unit}
-
${si(population)}
- - - +
${si( + population + )}
`; continue; } @@ -222,14 +221,13 @@ function religionsEditorAddLines() { -
${si(area) + unit}
+
${si(area) + unit}
-
${si(population)}
+
${si( + population + )}
${getExpansionColumns(r)} - +
`; } @@ -260,7 +258,7 @@ function religionsEditorAddLines() { $body.querySelectorAll("div > span.icon-arrows-cw").forEach(el => el.on("click", regenerateDeity)); $body.querySelectorAll("div > div.religionPopulation").forEach(el => el.on("click", changePopulation)); $body.querySelectorAll("div > select.religionExtent").forEach(el => el.on("change", religionChangeExtent)); - $body.querySelectorAll("div > input.religionExpan").forEach(el => el.on("change", religionChangeExpansionism)); + $body.querySelectorAll("div > input.religionExpantion").forEach(el => el.on("change", religionChangeExpansionism)); $body.querySelectorAll("div > span.icon-trash-empty").forEach(el => el.on("click", religionRemovePrompt)); $body.querySelectorAll("div > span.icon-lock").forEach($el => $el.on("click", updateLockStatus)); $body.querySelectorAll("div > span.icon-lock-open").forEach($el => $el.on("click", updateLockStatus)); @@ -282,25 +280,27 @@ function getTypeOptions(type) { function getExpansionColumns(r) { if (r.type === "Folk") - return ` - culture - - - `; - else - return ` - - `; + return /* html */ ` + + culture + + `; + + return /* html */ ` + + + + `; } function getExtentOptions(type) {