From 12bde610ef8149c741a2ad182fcd9dfe00ee10b0 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Fri, 12 Apr 2024 20:45:00 +0800 Subject: [PATCH] fix: link note window resize --- addon/chrome/content/linkNote.xhtml | 2 +- addon/chrome/content/styles/linkNote.css | 1 - src/utils/linkNote.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addon/chrome/content/linkNote.xhtml b/addon/chrome/content/linkNote.xhtml index 034ecb7..74c85e6 100644 --- a/addon/chrome/content/linkNote.xhtml +++ b/addon/chrome/content/linkNote.xhtml @@ -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" > diff --git a/addon/chrome/content/styles/linkNote.css b/addon/chrome/content/styles/linkNote.css index 61204aa..cfd21dc 100644 --- a/addon/chrome/content/styles/linkNote.css +++ b/addon/chrome/content/styles/linkNote.css @@ -7,7 +7,6 @@ #top-container { gap: 16px; overflow: auto; - width: 800px; padding: 2em; } diff --git a/src/utils/linkNote.ts b/src/utils/linkNote.ts index 672107e..1089cb8 100644 --- a/src/utils/linkNote.ts +++ b/src/utils/linkNote.ts @@ -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;