diff --git a/pages/overlay.js b/pages/overlay.js index d386ce2..d751fd3 100644 --- a/pages/overlay.js +++ b/pages/overlay.js @@ -193,7 +193,7 @@ export default class Overlay extends Component { async resetData(visible) { console.log("Exiting level, resetting data.") setTimeout(async () => { - await this.updateData(id); + await this.updateData(this.state.id); }, 250); this.setState({ leftHand: { diff --git a/src/components/SongInfo.js b/src/components/SongInfo.js index 90a2107..a265f7f 100644 --- a/src/components/SongInfo.js +++ b/src/components/SongInfo.js @@ -67,7 +67,7 @@ export default class SongInfo extends Component { return
{songName}
+{songName.length > 35 ? songName.substring(0, 35) + "..." : songName}
{songAuthorName}
{difficulty}
diff --git a/styles/scoreStats.module.css b/styles/scoreStats.module.css index 533aef1..5f51e78 100644 --- a/styles/scoreStats.module.css +++ b/styles/scoreStats.module.css @@ -8,6 +8,7 @@ .scoreStats p { font-size: xx-large; + line-height: 1.4em; } .scoreStatsRight { diff --git a/styles/songInfo.module.css b/styles/songInfo.module.css index 7a547a5..df02cc1 100644 --- a/styles/songInfo.module.css +++ b/styles/songInfo.module.css @@ -16,9 +16,6 @@ margin-left: 10px; } -.songInfo p { - font-size: x-large; -} .songInfoSongName { font-size: x-large;