shorten chess table when possible

pull/83/head
Thibault Duplessis 2012-09-23 10:27:26 +02:00
parent 6a3b4096c3
commit 65fe2e3a88
3 changed files with 6 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import play.api.templates.Html
trait AssetHelper {
val assetVersion = 91
val assetVersion = 92
def cssTag(name: String) = css("stylesheets/" + name)

View File

@ -519,7 +519,11 @@ $.widget("lichess.game", {
});
},
centerTable: function() {
this.$table.css('top', (256 - this.$table.height() / 2) + 'px');
var self = this;
self.$table.find(".lichess_control").each(function() {
$(this).toggleClass("none", $(this).html().trim() == "");
});
self.$table.css('top', (256 - self.$table.height() / 2) + 'px');
},
initClocks: function() {
var self = this;

1
todo
View File

@ -49,7 +49,6 @@ tournament detect leavers and withdraw them (started) (also use force resign)
-> or show current tournament on every page, with (join) and (redraw) buttons
tournament warmup games
send lobby new forum posts html through websockets
in table, hide lichess_control when it's empty (watcher mode)
BUG tournament idle resign: based on 20 seconds added time! can make black resign by playing after 19s
tournament join, sometimes withdraws by cron
AI thinks during your time (premove?) http://en.lichess.org/forum/lichess-feedback/y-u-so-greedy-with-time-stockfish#4