mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-03 04:25:12 +00:00
feat: Dont hide browsers with pending paints and align autmatic glance to the tabs panel, b=no-bug, c=glance
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
diff --git a/browser/themes/shared/tabbrowser/content-area.css b/browser/themes/shared/tabbrowser/content-area.css
|
||||
index e06addf1602dc26ff4e75a8db6251231690f3f80..86e2cd0194bb37fa140a2f93eccfdd61419a9aec 100644
|
||||
index e06addf1602dc26ff4e75a8db6251231690f3f80..ffac005d5040852eda8f574f65f2eadf5ecbd642 100644
|
||||
--- a/browser/themes/shared/tabbrowser/content-area.css
|
||||
+++ b/browser/themes/shared/tabbrowser/content-area.css
|
||||
@@ -276,7 +276,7 @@
|
||||
@@ -134,7 +134,6 @@
|
||||
}
|
||||
|
||||
browser:is([blank], [pendingpaint]) {
|
||||
- opacity: 0;
|
||||
}
|
||||
|
||||
browser[type="content"] {
|
||||
@@ -276,7 +275,7 @@
|
||||
|
||||
.dialogStack {
|
||||
z-index: var(--browser-stack-z-index-dialog-stack);
|
||||
|
||||
@@ -1355,12 +1355,16 @@
|
||||
* @param {Tab} tab - The tab to open glance for
|
||||
*/
|
||||
#openGlanceForTab(tab) {
|
||||
const browserRect = window.windowUtils.getBoundsWithoutFlushing(gBrowser.tabbox);
|
||||
const browserRect = window.windowUtils.getBoundsWithoutFlushing(gBrowser.tabpanels);
|
||||
const clickPosition = gZenUIManager._lastClickPosition || {
|
||||
clientX: browserRect.width / 2,
|
||||
clientY: browserRect.height / 2,
|
||||
};
|
||||
|
||||
// Make it relative to the tabpanels
|
||||
clickPosition.clientX -= browserRect.left;
|
||||
clickPosition.clientY -= browserRect.top;
|
||||
|
||||
this.openGlance(
|
||||
{
|
||||
url: undefined,
|
||||
|
||||
Reference in New Issue
Block a user