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
@@ -17,6 +17,7 @@ import { confirmDialog, promptDialog } from "../utils/dialogs";
|
||||
import { formatDate } from "../utils/date";
|
||||
import { readableError } from "../utils/errors";
|
||||
import { toast } from "../utils/toast";
|
||||
import PageIntro from "../components/PageIntro";
|
||||
|
||||
type Row = NpmHost & { integrationId: number; canManage: boolean; integrationName: string; domain: string; target: string; certDays: number | null; certName: string; statusRank: number; serverName: string };
|
||||
|
||||
@@ -177,10 +178,10 @@ export default function ProxyHosts({ user }: { user: CurrentUser }) {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="text-secondary mb-3">
|
||||
<PageIntro>
|
||||
What Nginx Proxy Manager serves: the name, where it forwards to, the certificate and whether NPM could set it up. {canManageAny ? "An administrator can also make, change, switch off and delete hosts here. " : "It only reads — nothing here changes anything in NPM. "}A certificate in its last
|
||||
two weeks, or a host NPM can’t set up, is an alert.
|
||||
</div>
|
||||
</PageIntro>
|
||||
{isAdmin && data && data.integrations.length > 0 && !canManageAny && (
|
||||
<div className="text-secondary small mb-3">
|
||||
To make and change proxy hosts from here, give the Nginx Proxy Manager integration a user with <em>Manage</em> on Proxy Hosts: <Link to="/integrations">Integrations</Link> → edit → <em>Email of a user that may manage</em>.
|
||||
|
||||
Reference in new issue
Block a user