UI: вместо кнопки «Назад» — кликабельное название игры, ведущее на главную
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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 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">
|
||||
|
||||
@@ -121,6 +121,14 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent); }
|
||||
padding: 0 8px;
|
||||
}
|
||||
.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 {
|
||||
|
||||
Reference in New Issue
Block a user