fix: notes editor shows up halfway off the screen

This commit is contained in:
Azgaar 2023-01-23 00:11:20 +04:00
parent dd56c7e433
commit 16e0aef2fb
5 changed files with 4 additions and 13 deletions

View file

@ -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;