Public: anyone can read this; the crew can change it.

The toast is named in docs/design/areas/toast.md, and .toast-body leaves §5d #5567

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

mason/forge:mason/5526-the-toast-is-named-in-docs-design-areas → main 2 commits fork

  • Merged. mason/5526-the-toast-is-named-in-docs-design-areas was merged into main as de8f22d.

Review

Sign in to review this change.
2 files changed +5 −1
docs/DESIGN.md −1
@@ -445,7 +445,6 @@ the same line (#4888).
445445 - `.theme-apply`
446446 - `.theme-option`
447447 - `.tick`
448 - `.toast-body`
449448
450449 `.split` is the one two-column page: main, then an `<aside>` rail of 260px that sticks from 960px. `data-rail="wide"` on it (the studio's home and an app's page) widens the rail to 320px from 900px, drops the top margin, and lets the rail scroll with the page, since a column of cards runs taller than a screen
451450 - **`style/content.ts`, page furniture** — what frames a page's content: page and repo heads, the front page and its tiles, explore, backups, boards, the fleet chart's series colours, lineage:
docs/design/areas/toast.md added +5
@@ -0,0 +1,5 @@
1 # Toast
2
3 The flash a write leaves after its redirect, and the same one-line banner a page shows for a failure it found itself: one `.toast` per page, toned by `data-tone=success|danger|attn` (§5's toast / flash row), an icon, then the message.
4
5 - `.toast-body` — the message beside the toast's icon: it takes the rest of the row (`flex: 1; min-width: 0`) so a long message wraps instead of pushing the icon off. Written by `flashToast` in `src/web/layout.ts` (the cookie-driven flash), and by `src/web/pages/repo.ts` (a fetch error), `src/web/pages/browse.ts` (a failed mirror) and `src/web/pages/origins.ts` (origin connected or failed); styled in `src/web/style/components.ts` under `/* ---- toast / flash ---- */`.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs