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);
-
-
-
-
-
-
-
-
-
+
+
+
+
+
diff --git a/scss/scaffold.scss b/scss/scaffold.scss
index 1d3a71a128..43a92dbd7e 100644
--- a/scss/scaffold.scss
+++ b/scss/scaffold.scss
@@ -29,20 +29,30 @@ $scaffold-toolbarbutton-icons: (
}
};
+#scaffold, #zotero-select-item-dialog {
+ @include contain-richlistbox;
+ @include macOS-normalize-controls;
+}
+
#scaffold {
min-height: 600px;
- @include contain-richlistbox;
}
#zotero-select-item-dialog {
max-width: 400px;
+ min-height: 330px;
max-height: 330px;
- @include contain-richlistbox;
}
-// Prevent contain-richlistbox from squishing the buttons
+#zotero-selectitems-links {
+ flex: 1 1 0;
+}
+
#zotero-select-items-buttons {
+ // Prevent contain-richlistbox from squishing the buttons
flex-shrink: 0;
+ gap: 6px;
+ padding-top: 4px;
}
.menubar-container {