fix: link note window resize

This commit is contained in:
windingwind 2024-04-12 20:45:00 +08:00
parent 2c82c72336
commit 12bde610ef
3 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
id="bn-note-picker"
windowtype="__addonRef__-note-picker"
windowtype="__addonRef__-link-note"
persist="screenX screenY width height sizemode"
style="min-width: 40em"
>

View File

@ -7,7 +7,6 @@
#top-container {
gap: 16px;
overflow: auto;
width: 800px;
padding: 2em;
}

View File

@ -14,7 +14,7 @@ async function openLinkNoteDialog(currentNote: Zotero.Item) {
window.openDialog(
`chrome://${config.addonRef}/content/linkNote.xhtml`,
"_blank",
"chrome,modal,centerscreen,resizable=no",
"chrome,modal,centerscreen",
io,
);
await io.deferred.promise;