From 6a85dd2c5e1b70f78faa085796399a21c19ccf76 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 10 Apr 2023 15:37:50 -0400 Subject: [PATCH] fx-compat: Lay out preferences window with flexbox (#3073) --- .../content/zotero/preferences/preferences.js | 2 +- .../zotero/preferences/preferences.xhtml | 28 ++++--- .../preferences/preferences_advanced.js | 2 +- .../preferences/preferences_advanced.xhtml | 54 ++++++------- .../preferences/preferences_export.xhtml | 2 +- chrome/skin/default/zotero/preferences.css | 75 ++++++++++++++++--- 6 files changed, 108 insertions(+), 55 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index a03dfffda5..9a5e95be28 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -212,7 +212,7 @@ var Zotero_Preferences = { this.navigation.append(listItem); - let container = document.createXULElement('vbox'); + let container = document.createElement('div'); container.hidden = true; this.helpContainer.before(container); diff --git a/chrome/content/zotero/preferences/preferences.xhtml b/chrome/content/zotero/preferences/preferences.xhtml index 791284be9a..683af2b056 100644 --- a/chrome/content/zotero/preferences/preferences.xhtml +++ b/chrome/content/zotero/preferences/preferences.xhtml @@ -49,9 +49,7 @@ windowtype="zotero:pref" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" - style="display: flex;" - width="800" - height="600"> + style="display: flex;">