Skip to content

Commit

Permalink
Fix zen mode touch alignment
Browse files Browse the repository at this point in the history
Fixes #1956
  • Loading branch information
veloce committed Dec 22, 2021
1 parent c3a04fe commit 9328d0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/styl/game.styl
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@
min-height 22px
&.zen
> .antagonistUser
display none
visibility hidden
> .ratingAndMaterial
> .rating
display none
visibility hidden
&.active
background-color lighten(bgdark, 8%)
&.crazy
Expand Down
5 changes: 1 addition & 4 deletions src/ui/shared/round/view/replay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ export function renderInlineReplay(ctrl: OnlineRound) {
return null
}

if (ctrl.isZen()) {
return h('div.replay_inline.hidden')
}

return h('div.replay_inline', {
className: helper.classSet({
displayPieces: !!pieceNotation,
hidden: ctrl.isZen(),
}),
oncreate: (vnode: Mithril.VnodeDOM) => {
setTimeout(() => autoScrollInline(vnode.dom as HTMLElement), 100)
Expand Down
4 changes: 2 additions & 2 deletions src/ui/shared/round/view/roundView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export function viewOnlyBoardContent(fen: string, orientation: Color, lastMove?:
if (isPortrait) {
return h.fragment({}, [
showMoveList ? h('div.replay_inline') : null,
h('section.playTable'),
h('section.playTable.opponent'),
board,
h('section.playTable'),
h('section.playTable.player'),
h('section.actions_bar'),
])
} else {
Expand Down

0 comments on commit 9328d0c

Please sign in to comment.