mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
Test against window.innerWidth
to toggle vertical layout
This commit is contained in:
parent
7fb3ee67d6
commit
2d960cf530
@ -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 New Issue
Block a user