diff --git a/4chan_x.user.js b/4chan_x.user.js
index 415bf2ac8..60477bc60 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: "
X"
});
file = $('input', box);
@@ -1371,7 +1371,7 @@
text = '';
}
tid || (tid = g.THREAD_ID || '');
- QR.qr = qr = ui.dialog('qr', 'top: 0; right: 0;', " X
");
+ QR.qr = qr = ui.dialog('qr', 'top: 0; right: 0;', " X
");
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]) : '';
@@ -3104,8 +3104,6 @@
display: block;\
}\
#qr {\
- max-height: 100%;\
- overflow-y: auto;\
position: fixed;\
}\
#qr #autohide, #qr .close {\
@@ -3136,9 +3134,15 @@
width: 300px;\
white-space: nowrap;\
overflow: auto;\
+ margin: 0;\
+ padding: 0;\
}\
- #qr #files span {\
+ #qr #files li {\
position: relative;\
+ display: inline-block;\
+ width: 100px;\
+ height: 100px;\
+ overflow: hidden;\
}\
#qr #files a {\
position: absolute;\
@@ -3156,11 +3160,16 @@
width: 100%;\
}\
#qr #files input {\
- display: none;\
+ /* cannot use `display: none;`\
+ https://bugs.webkit.org/show_bug.cgi?id=58208\
+ http://code.google.com/p/chromium/issues/detail?id=78961\
+ */\
+ visibility: hidden;\
}\
#qr #files img {\
max-height: 100px;\
max-width: 100px;\
+ float: left;\
}\
#qr input[name=resto] {\
width: 80px;\
diff --git a/script.coffee b/script.coffee
index 06f389a51..9a15d3efe 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: "
X"
file = $ 'input', box
$.bind file, 'change', QR.change
@@ -1060,7 +1060,7 @@ QR =