UI: вместо кнопки «Назад» — кликабельное название игры, ведущее на главную

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 16:41:34 +03:00
co-authored by Claude Opus 4.8
parent d32237975d
commit 28c0358b45
2 changed files with 11 additions and 7 deletions
+3 -7
View File
@@ -32,13 +32,9 @@ export function AppShell() {
<div className="app-shell">
<header className="top-bar">
<div className="top-bar-left">
{isHome ? (
<span className="title">{title}</span>
) : (
<button className="btn btn-ghost" onClick={() => navigate(-1)}>
← Назад
</button>
)}
<button className="top-bar-home" onClick={() => navigate("/")}>
Forbidden Stars
</button>
</div>
<span className="title small muted top-bar-center">{!isHome ? title : ""}</span>
<div className="top-bar-right">