feat(web): rework layout and quality of life (#12)
- App shell: top bar with connection state and Chat/Terminal toggles, per-column scrolling, sidebar only on the Notebooks page. - Hash routes (#/notebooks/<path>, #/hosts, #/settings) so reloads and links keep the open notebook and page. - Parameters sit beside the notebook on wide screens, collapsible, with missing-count summary and Reset; non-secret values are remembered per notebook in localStorage (secrets and undeclared names never stored). - Sticky notebook header with breadcrumbs, check summary and run-all; Ctrl/Cmd+S saves the Markdown draft. - Step cards show target, one deduplicated hint for missing values and copy feedback. - Shared Dialog, Menu and CopyButton components; notebook and host actions move into menus and modal dialogs. - Hosts page as a compact list; Settings split into cards with sign out for this browser.
This commit is contained in:
+50
-41
@@ -1,49 +1,58 @@
|
||||
.hosts-page {
|
||||
padding: 1rem;
|
||||
max-width: 70rem;
|
||||
.host-list {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
margin: 16px 0;
|
||||
}
|
||||
.host-list .empty {
|
||||
padding: 32px 20px;
|
||||
margin: 0;
|
||||
}
|
||||
.host-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
}
|
||||
.host-row + .host-row {
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
.host-main {
|
||||
min-width: 0;
|
||||
}
|
||||
.hosts-page pre {
|
||||
.host-main h2 {
|
||||
font-size: 15px;
|
||||
margin: 0 0 2px;
|
||||
}
|
||||
.host-main code {
|
||||
color: var(--muted);
|
||||
font-size: 12.5px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.host-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.host-row .actions {
|
||||
margin: 0;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
.public-key pre {
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
background: var(--code);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 5px;
|
||||
padding: 10px 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.hosts-page form {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.8rem;
|
||||
align-items: end;
|
||||
}
|
||||
.hosts-page label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
flex: 1 1 12rem;
|
||||
min-width: 0;
|
||||
}
|
||||
.hosts-page input,
|
||||
.hosts-page textarea,
|
||||
.hosts-page select {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.hosts-page article,
|
||||
.hosts-page [role="dialog"] {
|
||||
border: 1px solid #777;
|
||||
padding: 1rem;
|
||||
margin-block: 1rem;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.hosts-page .actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.hosts-page button {
|
||||
white-space: normal;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.app:has(.hosts-page) {
|
||||
display: block;
|
||||
@media (max-width: 760px) {
|
||||
.host-row {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
.app:has(.hosts-page) .sidebar {
|
||||
width: auto;
|
||||
.host-row .actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user