mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 17:17:57 +01:00
Test against window.innerWidth
to toggle vertical layout
This commit is contained in:
parent
7fb3ee67d6
commit
2d960cf530
1 changed files with 1 additions and 1 deletions
|
@ -1178,7 +1178,7 @@ const getPopupData = async function(tabId) {
|
|||
const main = document.getElementById('main');
|
||||
const firewall = document.getElementById('firewall');
|
||||
const minWidth = (main.offsetWidth + firewall.offsetWidth) / 1.1;
|
||||
if ( document.body.offsetWidth < minWidth ) {
|
||||
if ( window.innerWidth < minWidth ) {
|
||||
root.classList.remove('desktop');
|
||||
} else {
|
||||
const sticky = document.getElementById('sticky');
|
||||
|
|
Loading…
Reference in a new issue