Fold long page introductions to two lines with Show more

One component, PageIntro, for the text under a page's title: shown as it is
when it fits in two lines, otherwise folded with a Show more, remembered per
page in this browser, opened by tabbing to a link in it, unfolded in print.
Used on 41 pages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-10 19:42:34 +01:00
1 parent a2b43bcd5d
commit 9937ab2202
46 files changed
+307 -82

No files matched your search

+3 -2
View File
@@ -14,6 +14,7 @@ import {
type PasswordOptions,
} from "../utils/generators";
import { ErrorNotice } from "../components/Notice";
import PageIntro from "../components/PageIntro";
const MIXED = "mixed";
@@ -85,10 +86,10 @@ export default function Generator({ user }: { user: CurrentUser }) {
return (
<>
<h2 className="page-title mb-3">Generator</h2>
<div className="text-secondary mb-3">
<PageIntro>
Usernames and passwords are generated locally in your browser — nothing is sent to or stored on the server. Server names are
picked in your browser too, from name lists the server hands out.
</div>
</PageIntro>
<div className="row row-cards">
<div className="col-md-6 col-lg-4">