forked from GithubBackups/vichan
Merge pull request #379 from anonish/patch-1
QR fix for tablet (portrait) mode in laptops
This commit is contained in:
commit
e115bff930
@ -115,7 +115,7 @@
|
|||||||
#quick-reply td.recaptcha-response {\
|
#quick-reply td.recaptcha-response {\
|
||||||
padding: 0 0 1px 0;\
|
padding: 0 0 1px 0;\
|
||||||
}\
|
}\
|
||||||
@media screen and (max-width: 800px) {\
|
@media screen and (max-width: 600px) {\
|
||||||
#quick-reply {\
|
#quick-reply {\
|
||||||
display: none !important;\
|
display: none !important;\
|
||||||
}\
|
}\
|
||||||
@ -369,7 +369,7 @@
|
|||||||
$(window).ready(function() {
|
$(window).ready(function() {
|
||||||
if (settings.get('hide_at_top', true)) {
|
if (settings.get('hide_at_top', true)) {
|
||||||
$(window).scroll(function() {
|
$(window).scroll(function() {
|
||||||
if ($(this).width() <= 800)
|
if ($(this).width() <= 600)
|
||||||
return;
|
return;
|
||||||
if ($(this).scrollTop() < $origPostForm.offset().top + $origPostForm.height() - 100)
|
if ($(this).scrollTop() < $origPostForm.offset().top + $origPostForm.height() - 100)
|
||||||
$postForm.fadeOut(100);
|
$postForm.fadeOut(100);
|
||||||
@ -391,7 +391,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
$(window).on('cite', function(e, id, with_link) {
|
$(window).on('cite', function(e, id, with_link) {
|
||||||
if ($(this).width() <= 800)
|
if ($(this).width() <= 600)
|
||||||
return;
|
return;
|
||||||
show_quick_reply();
|
show_quick_reply();
|
||||||
if (with_link) {
|
if (with_link) {
|
||||||
@ -446,7 +446,7 @@
|
|||||||
$('.quick-reply-btn').hide();
|
$('.quick-reply-btn').hide();
|
||||||
|
|
||||||
$(window).scroll(function() {
|
$(window).scroll(function() {
|
||||||
if ($(this).width() <= 800)
|
if ($(this).width() <= 600)
|
||||||
return;
|
return;
|
||||||
if ($(this).scrollTop() < $('form[name="post"]:first').offset().top + $('form[name="post"]:first').height() - 100)
|
if ($(this).scrollTop() < $('form[name="post"]:first').offset().top + $('form[name="post"]:first').height() - 100)
|
||||||
$('.quick-reply-btn').fadeOut(100);
|
$('.quick-reply-btn').fadeOut(100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user