resize timeline for small screens

This commit is contained in:
Thibault Duplessis 2013-05-29 23:11:22 +02:00
parent 11954a3ef2
commit 3d62d36962
2 changed files with 11 additions and 0 deletions

View file

@ -278,6 +278,16 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
}
} else {
$(document.body).removeClass("tight");
$('#timeline').each(function() {
var ol = $(this).offset().left;
if (ol < 3) {
var dec = 3 - ol;
$(this).css({
'margin-left': (dec - 30) + 'px',
'width': (230 - dec) + 'px'
});
}
});
}
}
$(window).resize(onResize);

1
todo
View file

@ -74,6 +74,7 @@ hooks do not always disappear
don't show team leaders activity in mod logs
LilaError['[analysis] fred65 already analyses ueogn4fr, won't process ueogn4fr']
1024 compat (timeline) and http://ft.trillian.im/785abe041074fd64135ab3318aff1ec8767ab03d/6gZ41ZXugNdywSLY0JSQiVm7y6aeh.jpg
white advantage rounding http://en.lichess.org/analyse/fqzfbgll
DEPLOY p21
----------