From f40b215753ef0df40b805c5023e990bfcbde6ff1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 9 Aug 2022 04:10:25 -0400 Subject: [PATCH] fx-compat: Restore error reporting wizard --- .../{errorReport.xul => errorReport.xhtml} | 54 ++++++++++++++----- chrome/content/zotero/zoteroPane.js | 2 +- chrome/skin/default/zotero/errorReport.css | 14 ++++- 3 files changed, 55 insertions(+), 15 deletions(-) rename chrome/content/zotero/{errorReport.xul => errorReport.xhtml} (77%) diff --git a/chrome/content/zotero/errorReport.xul b/chrome/content/zotero/errorReport.xhtml similarity index 77% rename from chrome/content/zotero/errorReport.xul rename to chrome/content/zotero/errorReport.xhtml index ced67abdef..c573c6690b 100644 --- a/chrome/content/zotero/errorReport.xul +++ b/chrome/content/zotero/errorReport.xhtml @@ -6,10 +6,18 @@ - - + + + + + + + - + - + - + &zotero.errorReport.submissionInProgress; - + &zotero.errorReport.submitted; &zotero.errorReport.postToForums; &zotero.errorReport.notReviewed; + \ No newline at end of file diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 4689ef18bb..73462131bf 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -5448,7 +5448,7 @@ var ZoteroPane = new function() askForSteps: true }; var io = { wrappedJSObject: { Zotero: Zotero, data: data } }; - var win = ww.openWindow(null, "chrome://zotero/content/errorReport.xul", + var win = ww.openWindow(null, "chrome://zotero/content/errorReport.xhtml", "zotero-error-report", "chrome,centerscreen,modal", io); } diff --git a/chrome/skin/default/zotero/errorReport.css b/chrome/skin/default/zotero/errorReport.css index 5cee2bb484..2f18d2fa03 100644 --- a/chrome/skin/default/zotero/errorReport.css +++ b/chrome/skin/default/zotero/errorReport.css @@ -7,8 +7,16 @@ description { background: #FFF; } -#zotero-error-message .textbox-textarea { - padding: 5px !important +#report-start { + display: flex; + flex-direction: column; +} + +#zotero-error-message { + padding: 5px !important; + outline: 0; + flex: 1; + margin-bottom: 1em !important; } #zotero-unrelated-message { @@ -41,4 +49,6 @@ description { #zotero-report-id { color: red; font-weight: bold; + outline: 0; + background: none; }