nmbug.js: Add 10em left/right margins to the dialog
authorW. Trevor King <wking@tremily.us>
Mon, 22 Sep 2014 15:24:19 +0000 (08:24 -0700)
committerW. Trevor King <wking@tremily.us>
Mon, 22 Sep 2014 15:24:19 +0000 (08:24 -0700)
This avoids overlapping with Gmane's left-side navigation elements
(Home, Reading, Searching, ...).

nmbug.js

index f2640a6e072f701a1a8832f5510395a7c2170c03..78b51dcd889e71fe09858ad10a0aedc2f428187a 100644 (file)
--- a/nmbug.js
+++ b/nmbug.js
@@ -105,6 +105,8 @@ nmbug = {
                dialog.style.border = '1px solid rgba(0, 0, 0, 0.3)';
                dialog.style.borderRadius = '6px';
                dialog.style.boxShadow = '0 3px 7px rgba(0, 0, 0, 0.3)';
+               dialog.style.marginLeft = '10em';
+               dialog.style.marginRight = '10em';
 
                var content = frame.document.createElement('p');
                content.innerHTML = 'Edit tags for ' + message_id;