Skip to content

Commit 24cb132

Browse files
committed
Improves UI
1 parent 65ff010 commit 24cb132

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

static/css/app.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,17 @@
2828
tbody#pgn-moves {
2929
font-family: 'chesspirate', sans-serif;
3030
}
31-
31+
32+
33+
/* Overflow moves tables */
34+
.card-body#game-moves {
35+
overflow-y: scroll;
36+
max-height: 460px;
37+
}
38+
39+
tbody tr td:hover {
40+
background-color: #20a4f3;
41+
cursor: pointer;
42+
}
43+
44+

templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@
7474
<div class="card-header">
7575
<span>Moves</span>
7676
</div>
77-
<div class="card-body">
77+
<div class="card-body" id="game-moves">
7878
<table class="table table-striped table-sm table-dark table-hover">
7979
<thead>
8080
<tr>
8181
<th scope="col">#</th>
82-
<th scope="col">White</th>
82+
<th scope="col" class="active">White</th>
8383
<th scope="col">Black</th>
8484
</tr>
8585
</thead>

0 commit comments

Comments
 (0)