1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 09:39:38 +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:
Raymond Hill 2022-01-07 08:02:31 -05:00
parent 6d1b44b42c
commit b565d311a4
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 2 additions and 9 deletions

View File

@ -25,8 +25,10 @@ body {
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100vh;
padding: 0 2px;
position: relative;
width: 100vw;
}
.logo {

View File

@ -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; }