From 8f4084d374480504007f9361d6fdaddd7ba6323d Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Tue, 16 Nov 2021 17:12:18 +0200 Subject: [PATCH] Work around FF 60 ESR + Apple Silicon issue causing 40-60% CPU usage: It seems that style calculation gets insane when `overflow: auto` is used inside a collapsed box (specifically inside contextPane), although there might be more factors --- chrome/skin/default/zotero/contextPane.css | 5 +++++ pdf-reader | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/skin/default/zotero/contextPane.css b/chrome/skin/default/zotero/contextPane.css index 38146a36d5..dd0fb69044 100644 --- a/chrome/skin/default/zotero/contextPane.css +++ b/chrome/skin/default/zotero/contextPane.css @@ -86,3 +86,8 @@ overflow: hidden; text-overflow: ellipsis; } + +#zotero-context-pane[collapsed=true] .notes-list-container, +#zotero-context-pane[collapsed=true] .zotero-view-item > tabpanel > * { + overflow: unset !important; +} diff --git a/pdf-reader b/pdf-reader index ba21a98eb3..86259b8ea3 160000 --- a/pdf-reader +++ b/pdf-reader @@ -1 +1 @@ -Subproject commit ba21a98eb3bbb820c24847117473b3c751b2f248 +Subproject commit 86259b8ea386831ff8c40422aa85f896270352f0