nvuiRefactor
Thibault Duplessis 2019-01-23 14:14:29 +08:00
parent 1b7652d0ba
commit 588a625fe5
3 changed files with 6 additions and 4 deletions

View File

@ -189,6 +189,10 @@ body.blind_mode .cg-board-wrap {
.nvui h2 {
font-weight: bold;
}
.nvui .moves {
max-height: 140px;
overflow-y: auto;
}
.nvui .board {
font-family: monospace;
font-size: 2em;

View File

@ -38,7 +38,7 @@ function renderTab(ctrl: Ctrl, tab: Tab, active: Tab) {
function tabName(ctrl: Ctrl, tab: Tab) {
if (tab === 'discussion') return [
h('h2', ctrl.data.name),
(ctrl.opts.blind || ctrl.opts.alwaysEnabled) ? undefined : h('input.toggle_chat', {
ctrl.opts.alwaysEnabled ? undefined : h('input.toggle_chat', {
attrs: {
type: 'checkbox',
title: ctrl.trans.noarg('toggleTheChat'),

View File

@ -65,7 +65,7 @@ window.lichess.RoundNVUI = function(redraw: Redraw) {
h('p', `${d.game.rated ? 'Rated' : 'Casual'} ${d.game.perf}`),
d.clock ? h('p', `Clock: ${d.clock.initial / 60} + ${d.clock.increment}`) : null,
h('h2', 'Moves'),
h('p.pgn', {
h('p.moves', {
attrs: {
role : 'log',
'aria-live': 'off'
@ -73,8 +73,6 @@ window.lichess.RoundNVUI = function(redraw: Redraw) {
}, movesHtml(d.steps.slice(1), style)),
h('h2', 'Pieces'),
h('div.pieces', piecesHtml(ctrl, style)),
// h('h2', 'FEN'),
// h('p.fen', step.fen),
h('h2', 'Game status'),
h('div.status', {
attrs: {