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:
1 parent
a2b43bcd5d
commit
9937ab2202
46 files changed
+307
-82
No files matched your search
@@ -22,6 +22,7 @@ import MaintenanceTimeline from "../components/MaintenanceTimeline";
|
||||
import RecurringMaintenance from "../components/RecurringMaintenance";
|
||||
import ExportTableButton from "../components/ExportTableButton";
|
||||
import { EmptyRow, LoadingRow } from "../components/EmptyState";
|
||||
import PageIntro from "../components/PageIntro";
|
||||
|
||||
const DURATIONS: { minutes: number; label: string }[] = [
|
||||
{ minutes: 30, label: "30 minutes" },
|
||||
@@ -248,10 +249,10 @@ export default function Maintenance({ user }: { user: CurrentUser }) {
|
||||
return (
|
||||
<>
|
||||
<h2 className="page-title mb-3">Maintenance</h2>
|
||||
<div className="text-secondary mb-3">
|
||||
<PageIntro>
|
||||
Silence alerts about one server or integration while you work on it. Every window ends on its own — anything
|
||||
still wrong when it ends alerts then, so nothing stays hidden.
|
||||
</div>
|
||||
</PageIntro>
|
||||
<ErrorNotice error={error} />
|
||||
|
||||
{canEdit && (
|
||||
|
||||
Reference in new issue
Block a user