From e64730652a1e9a7dbbfe90a5a8e27e93fd5c21d3 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 21 Sep 2011 19:53:31 -0700 Subject: [PATCH] dedicated titlebar --- 4chan_x.user.js | 21 +++++++-------------- script.coffee | 34 +++++++++++++++------------------- 2 files changed, 22 insertions(+), 33 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 60477bc60..d53686af7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1371,7 +1371,7 @@ text = ''; } tid || (tid = g.THREAD_ID || ''); - QR.qr = qr = ui.dialog('qr', 'top: 0; right: 0;', " X
120 Captchas
" + (g.REPLY ? "" : '') + " " + QR.spoiler + "
"); + QR.qr = qr = ui.dialog('qr', 'top: 0; right: 0;', "
X
120 Captchas
" + (g.REPLY ? "" : '') + " " + QR.spoiler + "
"); c = d.cookie; $('[name=name]', qr).value = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : ''; $('[name=email]', qr).value = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : ''; @@ -1382,9 +1382,6 @@ } $.bind($('button', qr), 'click', QR.attach); $.bind($('.close', qr), 'click', QR.close); - $.bind($('.click', qr), 'mousedown', function(e) { - return e.stopPropagation(); - }); $.bind($('form', qr), 'submit', QR.submit); $.bind($('#recaptcha_response_field', qr), 'keydown', QR.keydown); QR.captchaImg(); @@ -3106,14 +3103,14 @@ #qr {\ position: fixed;\ }\ - #qr #autohide, #qr .close {\ - float: right;\ + #qr > .move {\ + text-align: right;\ }\ - #qr .click input {\ - width: 73px;\ + #qr input {\ + width: 82;\ }\ - #qr .click * {\ - float: left;\ + #qr #recaptcha_response_field {\ + width: 100%;\ }\ #qr form {\ margin: 0;\ @@ -3155,10 +3152,6 @@ padding: 2px;\ position: absolute;\ }\ - #qr #recaptcha_response_field {\ - display: inline;\ - width: 100%;\ - }\ #qr #files input {\ /* cannot use `display: none;`\ https://bugs.webkit.org/show_bug.cgi?id=58208\ diff --git a/script.coffee b/script.coffee index 9a15d3efe..e5005d4a6 100644 --- a/script.coffee +++ b/script.coffee @@ -1048,15 +1048,16 @@ QR = dialog: (text='', tid) -> tid or= g.THREAD_ID or '' QR.qr = qr = ui.dialog 'qr', 'top: 0; right: 0;', " - X -
- - - - - - + + + X +
+
+ + + +
@@ -1092,7 +1093,6 @@ QR = QR.cooldown() if conf['Cooldown'] $.bind $('button', qr), 'click', QR.attach $.bind $('.close', qr), 'click', QR.close - $.bind $('.click', qr), 'mousedown', (e) -> e.stopPropagation() $.bind $('form', qr), 'submit', QR.submit $.bind $('#recaptcha_response_field', qr), 'keydown', QR.keydown QR.captchaImg() @@ -2436,14 +2436,14 @@ Main = #qr { position: fixed; } - #qr #autohide, #qr .close { - float: right; + #qr > .move { + text-align: right; } - #qr .click input { - width: 73px; + #qr input { + width: 82; } - #qr .click * { - float: left; + #qr #recaptcha_response_field { + width: 100%; } #qr form { margin: 0; @@ -2485,10 +2485,6 @@ Main = padding: 2px; position: absolute; } - #qr #recaptcha_response_field { - display: inline; - width: 100%; - } #qr #files input { /* cannot use `display: none;` https://bugs.webkit.org/show_bug.cgi?id=58208