From 16e0aef2fb65799cf5c8e414c093b50c45409bf4 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 23 Jan 2023 00:11:20 +0400 Subject: [PATCH] fix: notes editor shows up halfway off the screen --- Readme.txt | 9 --------- index.css | 1 + index.html | 2 +- modules/ui/notes-editor.js | 3 +-- versioning.js | 2 +- 5 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 Readme.txt diff --git a/Readme.txt b/Readme.txt deleted file mode 100644 index 9d270a7c..00000000 --- a/Readme.txt +++ /dev/null @@ -1,9 +0,0 @@ -Azgaar's Fantasy Map Generator - -Developed by Azgaar (azgaar.fmg@yandex.com) and contributors - -Minsk, 2017-2021. MIT License - -https://github.com/Azgaar/Fantasy-Map-Generator - -To run the tool unzip ALL files and open index.html in browser \ No newline at end of file diff --git a/index.css b/index.css index bfd1ed67..945ccd04 100644 --- a/index.css +++ b/index.css @@ -2045,6 +2045,7 @@ div.textual span, } #notesLegend { + width: auto; height: 87%; outline: 0; overflow-y: auto; diff --git a/index.html b/index.html index 7684c476..4a97d69b 100644 --- a/index.html +++ b/index.html @@ -7886,7 +7886,7 @@ - + diff --git a/modules/ui/notes-editor.js b/modules/ui/notes-editor.js index 4362fb25..36b51671 100644 --- a/modules/ui/notes-editor.js +++ b/modules/ui/notes-editor.js @@ -42,12 +42,11 @@ function editNotes(id, name) { $("#notesEditor").dialog({ title: "Notes Editor", - width: "minmax(80vw, 540px)", + width: window.innerWidth * 0.8, height: window.innerHeight * 0.75, position: {my: "center", at: "center", of: "svg"}, close: removeEditor }); - $("[aria-describedby='notesEditor']").css("top", "10vh"); if (modules.editNotes) return; modules.editNotes = true; diff --git a/versioning.js b/versioning.js index b23bbd01..257b6cda 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.89.02"; // generator version, update each time +const version = "1.89.03"; // generator version, update each time { document.title += " v" + version;