summaryrefslogtreecommitdiff
path: root/js/quick-reply.js
diff options
context:
space:
mode:
authorSimon McFarlane <simon@piston.pw>2015-06-01 16:08:19 -0700
committerSimon McFarlane <simon@piston.pw>2015-06-01 16:08:19 -0700
commit209bc5400144e448e95a68e01d842c6fab53ae71 (patch)
treeab4cc6ad241e8daccb546514330d3a5f2906e846 /js/quick-reply.js
parentd1c1e5a589f30d640f5eb6303e7059105a6297f8 (diff)
parent7ab9cc43d101ed002bce392beefe1c435ab2d5b1 (diff)
Merge pull request #18 from lainchan/vichan-merge
Merge with the latest upstream vichan
Diffstat (limited to 'js/quick-reply.js')
-rw-r--r--js/quick-reply.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/js/quick-reply.js b/js/quick-reply.js
index 07fe4aef..12cca366 100644
--- a/js/quick-reply.js
+++ b/js/quick-reply.js
@@ -83,11 +83,12 @@
}\
#quick-reply textarea {\
width: 100%;\
+ min-width: 100%;\
box-sizing: border-box;\
-webkit-box-sizing:border-box;\
-moz-box-sizing: border-box;\
font-size: 10pt;\
- resize: vertical;\
+ resize: vertical horizontal;\
}\
#quick-reply input, #quick-reply select, #quick-reply textarea {\
margin: 0 0 1px 0;\
@@ -115,7 +116,7 @@
#quick-reply td.recaptcha-response {\
padding: 0 0 1px 0;\
}\
- @media screen and (max-width: 800px) {\
+ @media screen and (max-width: 400px) {\
#quick-reply {\
display: none !important;\
}\
@@ -363,7 +364,7 @@
$(window).ready(function() {
if (settings.get('hide_at_top', true)) {
$(window).scroll(function() {
- if ($(this).width() <= 800)
+ if ($(this).width() <= 400)
return;
if ($(this).scrollTop() < $origPostForm.offset().top + $origPostForm.height() - 100)
$postForm.fadeOut(100);
@@ -384,7 +385,7 @@
};
$(window).on('cite', function(e, id, with_link) {
- if ($(this).width() <= 800)
+ if ($(this).width() <= 400)
return;
show_quick_reply();
if (with_link) {
@@ -439,7 +440,7 @@
$('.quick-reply-btn').hide();
$(window).scroll(function() {
- if ($(this).width() <= 800)
+ if ($(this).width() <= 400)
return;
if ($(this).scrollTop() < $('form[name="post"]:first').offset().top + $('form[name="post"]:first').height() - 100)
$('.quick-reply-btn').fadeOut(100);