From b3f7a5a13860b4a94656834c8c6cf40afdde6ef3 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 21 Sep 2011 14:46:25 -0700 Subject: [PATCH 1/4] #qr doesn't overflow-y anymore --- 4chan_x.user.js | 2 -- script.coffee | 2 -- 2 files changed, 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 04d96c014..8818bef6c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3099,8 +3099,6 @@ display: block;\ }\ #qr {\ - max-height: 100%;\ - overflow-y: auto;\ position: fixed;\ }\ #qr #autohide, #qr .close {\ diff --git a/script.coffee b/script.coffee index 8979e9c2a..10eba1ddb 100644 --- a/script.coffee +++ b/script.coffee @@ -2430,8 +2430,6 @@ Main = display: block; } #qr { - max-height: 100%; - overflow-y: auto; position: fixed; } #qr #autohide, #qr .close { From 0c974d6556f42be8d8358f347894044700790239 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 21 Sep 2011 16:20:48 -0700 Subject: [PATCH 2/4] - div / span, + ul / li --- 4chan_x.user.js | 9 ++++++--- script.coffee | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 8818bef6c..5e87df49e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1258,7 +1258,7 @@ attach: function() { var box, file, files; files = $('#files', QR.qr); - box = $.el('span', { + box = $.el('li', { innerHTML: "click hereX" }); file = $('input', box); @@ -1371,7 +1371,7 @@ text = ''; } tid || (tid = g.THREAD_ID || ''); - QR.qr = qr = ui.dialog('qr', 'top: 0; left: 0;', " X
120 Captchas
" + (g.REPLY ? "" : '') + " " + QR.spoiler + "
"); + QR.qr = qr = ui.dialog('qr', 'top: 0; left: 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]) : ''; @@ -3129,9 +3129,12 @@ width: 300px;\ white-space: nowrap;\ overflow: auto;\ + margin: 0;\ + padding: 0;\ }\ - #qr #files span {\ + #qr #files li {\ position: relative;\ + display: inline;\ }\ #qr #files a {\ position: absolute;\ diff --git a/script.coffee b/script.coffee index 10eba1ddb..6c5132df8 100644 --- a/script.coffee +++ b/script.coffee @@ -972,7 +972,7 @@ QR = attach: -> #$('#autopost', QR.qr).checked = true files = $ '#files', QR.qr - box = $.el 'span', + box = $.el 'li', innerHTML: "click hereX" file = $ 'input', box $.bind file, 'change', QR.change @@ -1060,7 +1060,7 @@ QR =
    -
    +