mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 11:22:38 +01:00
Improve layout of popup panel when rendered in a tab
This brings back the ability to screenshot the whole list of domains when the popup panel is opened in a tab.
This commit is contained in:
parent
3bce80a7b6
commit
9947fcf4d5
@ -553,6 +553,14 @@ body:not([data-more~="e"]) [data-more="e"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* popup-in-tab mode, useful for screenshots */
|
||||
:root.desktop.intab body {
|
||||
overflow: auto;
|
||||
}
|
||||
:root.desktop.intab #firewall {
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
/* horizontally-constrained viewport */
|
||||
:root.portrait body {
|
||||
overflow-y: auto;
|
||||
|
@ -1027,7 +1027,7 @@ uDom('[data-i18n="popupAnyRulePrompt"]').on('click', ev => {
|
||||
messaging.send('popupPanel', {
|
||||
what: 'gotoURL',
|
||||
details: {
|
||||
url: `popup-fenix.html?tabId=${popupData.tabId}`,
|
||||
url: `popup-fenix.html?tabId=${popupData.tabId}&intab=1`,
|
||||
select: true,
|
||||
index: -1,
|
||||
},
|
||||
@ -1260,6 +1260,9 @@ const getPopupData = async function(tabId) {
|
||||
panes.prepend(sticky);
|
||||
}
|
||||
}
|
||||
if ( selfURL.searchParams.get('intab') !== null ) {
|
||||
root.classList.add('intab');
|
||||
}
|
||||
await nextFrames(1);
|
||||
document.body.classList.remove('loading');
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user