Fix download link styling and raise download description limits
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user