Fix visual bugs in progress bar and Quick Format dialog on macOS

Fix extra whitespace and misaligned Z icon

Update to e918b430b6 after some recent changes
This commit is contained in:
Dan Stillman 2021-02-27 04:16:30 -05:00
parent f861249fce
commit 2fbb7d404a
4 changed files with 4 additions and 9 deletions

View file

@ -12,10 +12,6 @@ tabs > tab[visuallyselected="true"] hbox > .tab-text {
} }
/* Quick Format dialog, which is based on window corners, which are different on Big Sur */ /* Quick Format dialog, which is based on window corners, which are different on Big Sur */
#quick-format-dialog #zotero-icon {
margin-top: 2px;
}
#quick-format-iframe { #quick-format-iframe {
margin-top: 2px; margin-top: 2px;
} }

View file

@ -20,7 +20,7 @@ window.citation-dialog {
} }
.citation-dialog.progress-bar .citation-dialog.deck { .citation-dialog.progress-bar .citation-dialog.deck {
height: 32px; height: 37px;
} }
.citation-dialog.search { .citation-dialog.search {

View file

@ -53,8 +53,8 @@ var Zotero_ProgressBar = new function () {
// With fx60 and drawintitlebar=true Firefox calculates the minHeight // With fx60 and drawintitlebar=true Firefox calculates the minHeight
// as titlebar+maincontent, so we have hack around that here. // as titlebar+maincontent, so we have hack around that here.
if (Zotero.isMac && Zotero.platformMajorVersion >= 60) { if (Zotero.isMac) {
document.querySelector(".citation-dialog.entry").style.marginBottom = "-22px"; document.querySelector(".citation-dialog.entry").style.marginBottom = "-28px";
} }
} }

View file

@ -88,10 +88,9 @@ var Zotero_QuickFormat = new function () {
qfb.setAttribute("square", "true"); qfb.setAttribute("square", "true");
} }
} }
// With fx60 and drawintitlebar=true Firefox calculates the minHeight // With fx60 and drawintitlebar=true Firefox calculates the minHeight
// as titlebar+maincontent, so we have hack around that here. // as titlebar+maincontent, so we have hack around that here.
if (Zotero.isMac && Zotero.platformMajorVersion >= 60) { else if (Zotero.isMac) {
qfb.style.marginBottom = "-28px"; qfb.style.marginBottom = "-28px";
} }