From 9510eef69aefa23431615fb0ce8762d7083c599a Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 24 Jan 2025 15:04:43 -0500 Subject: [PATCH] Scaffold: Fix select dialog overflow (again!) And restore button spacing. --- chrome/content/scaffold/select.js | 4 ++-- chrome/content/scaffold/select.xhtml | 14 +++++--------- scss/scaffold.scss | 16 +++++++++++++--- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/chrome/content/scaffold/select.js b/chrome/content/scaffold/select.js index e2e266b6a8..30afd7b171 100644 --- a/chrome/content/scaffold/select.js +++ b/chrome/content/scaffold/select.js @@ -43,8 +43,8 @@ Zotero_Ingester_Interface_SelectItems.init = function () { () => Zotero_Ingester_Interface_SelectItems.acceptSelection()); // Set font size from pref - var sbc = document.getElementById('zotero-select-items-container'); - Zotero.UIProperties.registerRoot(sbc); + var dialog = document.querySelector('dialog'); + Zotero.UIProperties.registerRoot(dialog); this.io = window.arguments[0]; var listbox = document.getElementById("zotero-selectitems-links"); diff --git a/chrome/content/scaffold/select.xhtml b/chrome/content/scaffold/select.xhtml index d2cf195e0e..9be5cbbbed 100755 --- a/chrome/content/scaffold/select.xhtml +++ b/chrome/content/scaffold/select.xhtml @@ -48,14 +48,10 @@ Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this); - - - - - -