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"> <div className="app-shell">
<header className="top-bar"> <header className="top-bar">
<div className="top-bar-left"> <div className="top-bar-left">
{isHome ? ( <button className="top-bar-home" onClick={() => navigate("/")}>
<span className="title">{title}</span> Forbidden Stars
) : ( </button>
<button className="btn btn-ghost" onClick={() => navigate(-1)}>
← Назад
</button>
)}
</div> </div>
<span className="title small muted top-bar-center">{!isHome ? title : ""}</span> <span className="title small muted top-bar-center">{!isHome ? title : ""}</span>
<div className="top-bar-right"> <div className="top-bar-right">
+8
View File
@@ -121,6 +121,14 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent); }
padding: 0 8px; padding: 0 8px;
} }
.top-bar-right { display: flex; align-items: center; } .top-bar-right { display: flex; align-items: center; }
.top-bar-home {
background: none;
border: none;
padding: 0;
color: var(--text);
font-weight: 700;
font-size: 17px;
}
.notif-bell-wrap { position: relative; } .notif-bell-wrap { position: relative; }
.notif-bell { .notif-bell {