1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Improve iconography in toolbar

This commit is contained in:
tobspr
2020-05-18 20:30:03 +02:00
parent ee5fb984c1
commit 8c42827f4e
9 changed files with 30 additions and 22 deletions

View File

@@ -97,8 +97,8 @@ export class TextualGameState extends GameState {
if (this.getStateHeaderTitle()) {
headerHtml = `
<div class="headerBar">
<button class="backButton"></button>
<h1>${this.getStateHeaderTitle()}</h1>
<h1><button class="backButton"></button> ${this.getStateHeaderTitle()}</h1>
</div>`;
}
@@ -138,7 +138,7 @@ export class TextualGameState extends GameState {
}
this.containerElement = this.htmlElement.querySelector(".widthKeeper .container");
this.headerElement = this.htmlElement.querySelector(".headerBar > .backButton");
this.headerElement = this.htmlElement.querySelector(".headerBar > h1");
if (this.headerElement) {
this.trackClicks(this.headerElement, this.onBackButton);