diff --git a/server/helpers.js b/server/helpers.js index 6a3aef3..5abf249 100644 --- a/server/helpers.js +++ b/server/helpers.js @@ -171,7 +171,7 @@ function sanitizeCustomLinks(value) { label: typeof item.label === 'string' ? item.label.trim().slice(0, 140) : '', url: sanitizeUrl(item.url), imageUrl: sanitizeUrl(item.imageUrl), - description: typeof item.description === 'string' ? item.description.trim().slice(0, 400) : '', + description: typeof item.description === 'string' ? item.description.trim().slice(0, 4000) : '', placement, } }) @@ -197,7 +197,7 @@ function sanitizeArchivedSeriesResourceLinks(value) { .map(item => ({ id: typeof item.id === 'string' && item.id.trim() ? item.id.trim() : randomUUID(), label: typeof item.label === 'string' ? item.label.trim().slice(0, 120) : '', - description: typeof item.description === 'string' ? item.description.trim().slice(0, 400) : '', + description: typeof item.description === 'string' ? item.description.trim().slice(0, 4000) : '', url: sanitizeUrl(item.url), })) .filter(item => item.label && item.url) diff --git a/src/AdminPage.tsx b/src/AdminPage.tsx index a9b79bb..9d4c2a2 100644 --- a/src/AdminPage.tsx +++ b/src/AdminPage.tsx @@ -2225,7 +2225,7 @@ export default function AdminPage({ content, onSave, onLogout }: Props) { id={`resource-description-${link.id}`} rows={3} value={link.description ?? ''} - placeholder="Short description shown on the download page" + placeholder="Description shown on the download page" onChange={e => updateLink(link.id, 'description', e.target.value)} /> @@ -2328,7 +2328,7 @@ export default function AdminPage({ content, onSave, onLogout }: Props) { id={`resources-archive-link-description-${link.id}`} rows={3} value={link.description ?? ''} - placeholder="Short description shown on the download page" + placeholder="Description shown on the download page" onChange={e => updateArchivedSeriesLink(series.id, link.id, 'description', e.target.value)} /> diff --git a/src/App.css b/src/App.css index 06594a1..cf2e85b 100644 --- a/src/App.css +++ b/src/App.css @@ -1409,6 +1409,8 @@ padding: 1rem; display: grid; gap: 1rem; + text-decoration: none; + color: inherit; } .resource-download-header {