UI: centered nav title, settings tabs, running status, manual buttons.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-24 17:17:44 +08:00
parent 8ea05e7064
commit b6d9877538
7 changed files with 236 additions and 145 deletions
+56 -2
View File
@@ -49,7 +49,8 @@ input {
}
.topnav {
display: flex;
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 8px;
padding: 10px 16px;
@@ -61,11 +62,31 @@ input {
z-index: 10;
}
.topnav-side {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.topnav-side.right {
justify-content: flex-end;
}
.topnav-center {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
}
.brand {
font-weight: 700;
letter-spacing: 0.02em;
margin-right: 12px;
color: var(--accent);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.topnav a {
@@ -73,6 +94,7 @@ input {
text-decoration: none;
padding: 8px 12px;
border-radius: 6px;
white-space: nowrap;
}
.topnav a.active {
@@ -80,6 +102,38 @@ input {
background: var(--bg-panel);
}
.tabs {
display: flex;
gap: 4px;
margin-bottom: 12px;
border-bottom: 1px solid var(--line);
padding-bottom: 0;
}
.tab {
background: transparent;
border: 0;
color: var(--muted);
padding: 10px 14px;
cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
}
.tab.active {
color: var(--text);
border-bottom-color: var(--accent);
}
.status-running {
color: var(--up);
font-weight: 600;
}
.status-stopped {
color: var(--muted);
}
.topnav .spacer {
flex: 1;
}