Fix download link styling and raise download description limits

This commit is contained in:
nmemmert
2026-05-04 15:08:27 -04:00
parent 554c248ea7
commit 79eb72635e
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -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)