From d944a59b10b3706a56cc4c639b785d1f1962669d Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 17 Jun 2017 10:17:13 -0400 Subject: [PATCH] fix #2709 --- platform/firefox/vapi-background.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 014e8c3d5..5e43d7b49 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -2661,9 +2661,6 @@ vAPI.toolbarButton = { tbb.populatePanel = function(doc, panel) { panel.setAttribute('id', this.viewId); - // https://github.com/gorhill/uBlock/issues/2696 - panel.style.setProperty('padding', '0'); - var iframe = doc.createElement('iframe'); iframe.setAttribute('type', 'content'); @@ -3111,6 +3108,9 @@ vAPI.toolbarButton = { CustomizableUI.addListener(CUIEvents); + // https://github.com/gorhill/uBlock/issues/2696 + // https://github.com/gorhill/uBlock/issues/2709 + var style = [ '#' + this.id + '.off {', 'list-style-image: url(', @@ -3124,9 +3124,11 @@ vAPI.toolbarButton = { '}', '#' + this.viewId + ',', '#' + this.viewId + ' > iframe {', - 'width: 160px;', 'height: 290px;', + 'min-width: 0 !important;', 'overflow: hidden !important;', + 'padding: 0 !important;', + 'width: 160px;', '}' ];