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">
|
<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">
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user