Skip to content

Commit

Permalink
In the lobby chart, put the list button near the top-right corner (le…
Browse files Browse the repository at this point in the history
…ss likely to be covered by challenge buttons).
  • Loading branch information
johndoknjas committed Nov 10, 2024
1 parent 169f025 commit a4aae9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ui/lobby/css/app/_app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
}
}

.toggle-padding-left {
@extend .toggle;
padding-left: 90%;
}

.gamesFiltered {
color: $c-accent;

Expand Down
2 changes: 1 addition & 1 deletion ui/lobby/src/view/realTime/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function renderYAxis() {
}

export function toggle(ctrl: LobbyController) {
return h('i.toggle', {
return h('i.toggle-padding-left', {
key: 'set-mode-list',
attrs: { title: i18n.site.list, 'data-icon': licon.List },
hook: bind('mousedown', _ => ctrl.setMode('list'), ctrl.redraw),
Expand Down

0 comments on commit a4aae9a

Please sign in to comment.