Skip to content

Commit a07b78f

Browse files
committed
Handle missing width in link list maxLinkWidth
Without a default, undefined width caused incorrect link width calculations for link list elements.
1 parent ef8cf8a commit a07b78f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • entry_types/scrolled/package/src/contentElements/externalLinkList

entry_types/scrolled/package/src/contentElements/externalLinkList/linkWidths.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export const linkWidths = {
1010
}
1111

1212
export function maxLinkWidth({layout, textPosition, width}) {
13+
width = width || contentElementWidths.md;
14+
1315
if (layout === 'center' || layout === 'centerRagged') {
1416
if (textPosition === 'right') {
1517
return {

0 commit comments

Comments
 (0)