Move Beijing clock onto nav row with larger type.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -57,7 +57,6 @@ function Shell({ children }: { children: ReactNode }) {
|
||||
<div className="header-title">对冲舰队指挥中心</div>
|
||||
<div className="header-subtitle">—— 比特骆驼定制开发</div>
|
||||
</div>
|
||||
<BeijingClock />
|
||||
</div>
|
||||
<div className="header-bar">
|
||||
<nav className="nav">
|
||||
@@ -71,21 +70,24 @@ function Shell({ children }: { children: ReactNode }) {
|
||||
系统设置
|
||||
</NavLink>
|
||||
</nav>
|
||||
{!lanClient ? (
|
||||
<div className="header-right">
|
||||
<span className="meta">{user}</span>
|
||||
<button
|
||||
type="button"
|
||||
className="btn ghost"
|
||||
onClick={() => {
|
||||
clearSession();
|
||||
window.location.href = "/login";
|
||||
}}
|
||||
>
|
||||
退出
|
||||
</button>
|
||||
</div>
|
||||
) : null}
|
||||
<div className="header-right">
|
||||
<BeijingClock />
|
||||
{!lanClient ? (
|
||||
<>
|
||||
<span className="meta">{user}</span>
|
||||
<button
|
||||
type="button"
|
||||
className="btn ghost"
|
||||
onClick={() => {
|
||||
clearSession();
|
||||
window.location.href = "/login";
|
||||
}}
|
||||
>
|
||||
退出
|
||||
</button>
|
||||
</>
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main className="main">{children}</main>
|
||||
|
||||
@@ -58,12 +58,10 @@ body {
|
||||
}
|
||||
|
||||
.header-top {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
padding: 4px 0 2px;
|
||||
min-height: 3.2rem;
|
||||
}
|
||||
|
||||
.header-title-wrap {
|
||||
@@ -102,45 +100,26 @@ body {
|
||||
}
|
||||
|
||||
.header-beijing-time {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 2px;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
flex-direction: row;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.header-beijing-label {
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.12em;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.header-beijing-value {
|
||||
font-size: 0.95rem;
|
||||
color: var(--accent);
|
||||
text-shadow: var(--glow);
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.header-top {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.header-beijing-time {
|
||||
position: static;
|
||||
transform: none;
|
||||
align-items: center;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.header-beijing-value {
|
||||
font-size: 1.15rem;
|
||||
font-weight: 650;
|
||||
color: var(--accent);
|
||||
text-shadow: var(--glow);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.header-bar {
|
||||
|
||||
Reference in New Issue
Block a user