The persistent #statusBar strip held whatever last-action message
was written ("Loaded N items", "Created folder X", error text, …)
and stuck around indefinitely, overlapping content while adding
little value. Deleted the strip; existing statusInfo/statusError
call sites now thunk through window.zddc.toast (the shared toast
helper every tool already bundles).
- Same function signatures: events.statusInfo /
events.statusError keep working without touching the 70+ call
sites across app.js, download.js, events.js, etc.
- plan-review.js had its own private statusInfo/statusError pair
(duplicated the DOM write); updated to route through
zddc.toast as well.
- statusClear becomes a no-op — toasts fade on their own (5s
info, 8s error via cap-toast) and the toast helper's
single-toast policy guarantees only the latest is visible.
Removed: #statusBar div from template.html, .status-bar / .is-error
/ .is-info / --error / --info rules from base.css and tree.css.
Zero remaining `statusBar` or `status-bar` references in the built
browse.html. Full Playwright suite green (243/0/4).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
44 lines
1.1 KiB
CSS
44 lines
1.1 KiB
CSS
/* browse-specific layout on top of shared/base.css */
|
|
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: var(--font);
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
#appMain {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* .empty-state / .empty-state__inner live in shared/base.css. */
|
|
|
|
/* .hidden lives in shared/base.css; no per-tool override needed. */
|
|
|
|
/* Read-only banner for the YAML editor — surfaced by preview-yaml.js
|
|
when the listing's `writable` bit was false. CodeMirror's readOnly
|
|
mode has no built-in visual signal beyond the disabled caret, so a
|
|
banner here is the explicit cue. The markdown editor doesn't need
|
|
one because its read-only mount uses Toast UI's Viewer (no edit
|
|
toolbar at all). */
|
|
.yaml-readonly-banner {
|
|
background: rgba(220, 53, 69, 0.10);
|
|
color: var(--text);
|
|
border-bottom: 1px solid rgba(220, 53, 69, 0.35);
|
|
padding: 0.4rem 0.7rem;
|
|
font-size: 0.85rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
}
|