Skip to content

Commit 6a0432f

Browse files
authored
Merge pull request #2362 from tf/link-width-slider-fix
Handle missing width in link list maxLinkWidth
2 parents f371962 + a07b78f commit 6a0432f

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)