From fc1131e0215f744f05516226c3a6421fcdb19db0 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 25 Aug 2023 21:20:51 +0200 Subject: save fix and text alignment --- resources/css/battle.css | 1 + resources/js/ui.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/css/battle.css b/resources/css/battle.css index 681b2e6..c60a025 100644 --- a/resources/css/battle.css +++ b/resources/css/battle.css @@ -89,6 +89,7 @@ position: absolute; top: 0; right: 0; + text-align: center; } .battle__trainer-sprite { diff --git a/resources/js/ui.js b/resources/js/ui.js index a19db2e..7c0c064 100644 --- a/resources/js/ui.js +++ b/resources/js/ui.js @@ -1642,7 +1642,7 @@ const UI = { const saveData = Memory.save(); dialog.querySelector('[data-template-slot="saveData"]').value = saveData; - dialog.querySelector('[data-template-slot="saveClipboard"]').addEventListener('click', UI.createEventListenr(async () => { + dialog.querySelector('[data-template-slot="saveClipboard"]').addEventListener('click', UI.createEventListener(async () => { if (navigator.clipboard) { await navigator.clipboard.writeText(saveData); alert('Saved to clipboard!'); -- cgit v1.2.3