mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
Fix CSS sizing of click-to-load widget as suggested
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1901
This commit is contained in:
parent
6d1b44b42c
commit
b565d311a4
@ -25,8 +25,10 @@ body {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
height: 100vh;
|
||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
|
@ -42,15 +42,6 @@ frameURLElem.children[1].title = frameURL;
|
|||||||
|
|
||||||
document.body.setAttribute('title', actualURL);
|
document.body.setAttribute('title', actualURL);
|
||||||
|
|
||||||
const onWindowResize = function() {
|
|
||||||
document.body.style.width = `${self.innerWidth}px`;
|
|
||||||
document.body.style.height = `${self.innerHeight}px`;
|
|
||||||
};
|
|
||||||
|
|
||||||
onWindowResize();
|
|
||||||
|
|
||||||
self.addEventListener('resize', onWindowResize);
|
|
||||||
|
|
||||||
document.body.addEventListener('click', ev => {
|
document.body.addEventListener('click', ev => {
|
||||||
if ( ev.isTrusted === false ) { return; }
|
if ( ev.isTrusted === false ) { return; }
|
||||||
if ( ev.target.closest('#frameURL') !== null ) { return; }
|
if ( ev.target.closest('#frameURL') !== null ) { return; }
|
||||||
|
Loading…
Reference in New Issue
Block a user