nvui
parent
1b7652d0ba
commit
588a625fe5
|
@ -189,6 +189,10 @@ body.blind_mode .cg-board-wrap {
|
||||||
.nvui h2 {
|
.nvui h2 {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.nvui .moves {
|
||||||
|
max-height: 140px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
.nvui .board {
|
.nvui .board {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
|
|
|
@ -38,7 +38,7 @@ function renderTab(ctrl: Ctrl, tab: Tab, active: Tab) {
|
||||||
function tabName(ctrl: Ctrl, tab: Tab) {
|
function tabName(ctrl: Ctrl, tab: Tab) {
|
||||||
if (tab === 'discussion') return [
|
if (tab === 'discussion') return [
|
||||||
h('h2', ctrl.data.name),
|
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: {
|
attrs: {
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
title: ctrl.trans.noarg('toggleTheChat'),
|
title: ctrl.trans.noarg('toggleTheChat'),
|
||||||
|
|
|
@ -65,7 +65,7 @@ window.lichess.RoundNVUI = function(redraw: Redraw) {
|
||||||
h('p', `${d.game.rated ? 'Rated' : 'Casual'} ${d.game.perf}`),
|
h('p', `${d.game.rated ? 'Rated' : 'Casual'} ${d.game.perf}`),
|
||||||
d.clock ? h('p', `Clock: ${d.clock.initial / 60} + ${d.clock.increment}`) : null,
|
d.clock ? h('p', `Clock: ${d.clock.initial / 60} + ${d.clock.increment}`) : null,
|
||||||
h('h2', 'Moves'),
|
h('h2', 'Moves'),
|
||||||
h('p.pgn', {
|
h('p.moves', {
|
||||||
attrs: {
|
attrs: {
|
||||||
role : 'log',
|
role : 'log',
|
||||||
'aria-live': 'off'
|
'aria-live': 'off'
|
||||||
|
@ -73,8 +73,6 @@ window.lichess.RoundNVUI = function(redraw: Redraw) {
|
||||||
}, movesHtml(d.steps.slice(1), style)),
|
}, movesHtml(d.steps.slice(1), style)),
|
||||||
h('h2', 'Pieces'),
|
h('h2', 'Pieces'),
|
||||||
h('div.pieces', piecesHtml(ctrl, style)),
|
h('div.pieces', piecesHtml(ctrl, style)),
|
||||||
// h('h2', 'FEN'),
|
|
||||||
// h('p.fen', step.fen),
|
|
||||||
h('h2', 'Game status'),
|
h('h2', 'Game status'),
|
||||||
h('div.status', {
|
h('div.status', {
|
||||||
attrs: {
|
attrs: {
|
||||||
|
|
Loading…
Reference in New Issue