mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Firefox: popup size for menu-panel
This commit is contained in:
parent
f0ad21fcf5
commit
05bcc070a9
2
platform/firefox/bootstrap.js
vendored
2
platform/firefox/bootstrap.js
vendored
@ -105,7 +105,7 @@ function shutdown(data, reason) {
|
||||
|
||||
bgProcess.parentNode.removeChild(bgProcess);
|
||||
|
||||
// remove the restartObserver only when the extension is being disabled
|
||||
// Remove the restartObserver only when the extension is being disabled
|
||||
if ( data !== undefined ) {
|
||||
restartObserver.unregister();
|
||||
}
|
||||
|
@ -648,7 +648,13 @@ vAPI.toolbarButton.init = function() {
|
||||
label: vAPI.app.name,
|
||||
tooltiptext: vAPI.app.name,
|
||||
onViewShowing: function({target}) {
|
||||
target.firstChild.setAttribute('src', vAPI.getURL('popup.html'));
|
||||
var hash = CustomizableUI.getWidget(vAPI.toolbarButton.widgetId)
|
||||
.areaType === CustomizableUI.TYPE_TOOLBAR ? '' : '#body';
|
||||
|
||||
target.firstChild.setAttribute(
|
||||
'src',
|
||||
vAPI.getURL('popup.html' + hash)
|
||||
);
|
||||
},
|
||||
onViewHiding: function({target}) {
|
||||
target.firstChild.setAttribute('src', 'about:blank');
|
||||
|
@ -7,6 +7,9 @@ body {
|
||||
padding: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#body:target {
|
||||
float: none;
|
||||
}
|
||||
h1,h2,h3,h4 {
|
||||
background-color: #444;
|
||||
border: 0;
|
||||
|
@ -8,7 +8,7 @@
|
||||
<title>µBlock</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body id="body">
|
||||
<a href="dashboard.html" target="_blank" id="gotoPrefs" title="popupTipDashboard"><span id="appname"></span><span id="version"></span></a>
|
||||
<div id="panes">
|
||||
<div>
|
||||
|
Loading…
Reference in New Issue
Block a user