mirror of https://github.com/gorhill/uBlock.git
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;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
padding: 0 2px;
|
||||
position: relative;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
.logo {
|
||||
|
|
|
@ -42,15 +42,6 @@ frameURLElem.children[1].title = frameURL;
|
|||
|
||||
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 => {
|
||||
if ( ev.isTrusted === false ) { return; }
|
||||
if ( ev.target.closest('#frameURL') !== null ) { return; }
|
||||
|
|
Loading…
Reference in New Issue