Files
ShellBook/apps/web/src/hosts.css
T
Florian Schmidt e38f9c453c 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.
2026-11-16 12:32:01 +01:00

59 lines
1020 B
CSS

.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;
}
.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;
}
@media (max-width: 760px) {
.host-row {
grid-template-columns: minmax(0, 1fr);
}
.host-row .actions {
flex-wrap: wrap;
}
}