From e3996afc7646509579e5d02db18cd15c12c7b413 Mon Sep 17 00:00:00 2001 From: aNNiMON Date: Sat, 25 May 2024 00:14:48 +0300 Subject: [PATCH] Always show author text --- src/css/run.css | 6 +++--- src/view/MainView.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/css/run.css b/src/css/run.css index afc76a8..52d68f3 100644 --- a/src/css/run.css +++ b/src/css/run.css @@ -39,18 +39,18 @@ body { } #textAuthor { - margin: 5px 0 10px 20px; + margin: 0.5rem 0 0.4rem 1.5rem; color: white; } #textContent { color: #DEC88C; - margin: 0 10px; + margin: 0 2rem; } .sprite { position: absolute; - bottom: 0px; + bottom: 0; } #menu { diff --git a/src/view/MainView.ts b/src/view/MainView.ts index 4935497..cf12924 100644 --- a/src/view/MainView.ts +++ b/src/view/MainView.ts @@ -88,7 +88,7 @@ export class MainView implements ViewModel { } public text(text: string): void { - this.elTextAuthor.innerText = ''; + this.elTextAuthor.textContent = "\u00A0"; if (TextUtils.isEmpty(text)) this.windowHide(""); else { this.windowShow("");