deal with crowded lobby

This commit is contained in:
Thibault Duplessis 2013-06-10 11:52:25 +02:00
parent eb7f7a51d3
commit 67449f2935
3 changed files with 8 additions and 3 deletions

View file

@ -2139,6 +2139,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
});
$noHook.toggle(visible == 0);
$table.toggleClass('crowded', visible >= 12);
$wrap
.find('a.filter')
.toggleClass('on', filter.mode != null || filter.variant != null || filter.speed != null || filter.eloDiff > 0)

View file

@ -1389,6 +1389,7 @@ div.game_config div.color_submits button.random span {
left: 0;
background: #f0f0f0 url(../images/knight2000.png) no-repeat;
border-radius: 0 5px 5px 5px;
overflow: hidden;
}
#hooks_wrap > div.tabs {
position: absolute;
@ -1481,11 +1482,10 @@ div.game_config div.color_submits button.random span {
#hooks_table {
width: 512px;
max-height: 512px;
overflow: hidden;
}
#hooks_table th {
border-bottom: 1px solid #ccc;
padding: 10px 12px;
padding: 12px 12px;
}
#hooks_table th > span {
display: inline-block;
@ -1507,6 +1507,9 @@ div.game_config div.color_submits button.random span {
padding: 12px 12px;
border-bottom: 1px solid #ccc;
}
#hooks_table.crowded td {
padding: 8px 12px;
}
#hooks_table tr:nth-child(odd) td {
background: rgba(255, 255, 255, 0.6);
}
@ -1533,7 +1536,7 @@ div.game_config div.color_submits button.random span {
font-size: 8px;
position: absolute;
left: 3px;
bottom: -13px;
bottom: 1px;
text-shadow: 0 0 3px #fff;
font-weight: bold;
}

1
todo
View file

@ -71,6 +71,7 @@ replace plot with watch plot when game starts
real rematch against AI
lobby table sort
graph x labels inside
colorpicker does nothing on homepage
---