Skip to content

Commit

Permalink
Merge pull request #4 from digitalutsc/expand-bug
Browse files Browse the repository at this point in the history
fixed bugs with crash and expand

Thanks @jeffbuyunhe
  • Loading branch information
Natkeeran authored Oct 4, 2023
2 parents d03ee87 + 902668e commit fb449fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/archive_list_contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
jQuery(archive).readmore({
moreLink: '<a href="#">Expand</a>',
lessLink: '<a href="#">Close</a>',
blockCSS: 'display: none; width: 100%;'
blockCSS: 'display: none; width: 100%;',
heightMargin: 120,
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Field/FieldFormatter/ArchiveListContents.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
$element[$delta]['archiveList'] = [
'#type' => 'container',
'#attributes' => [
'class' => $this->t('archivelist-readmore'),
'class' => 'archivelist-readmore',
],
];
$element[$delta]['archiveList'][] = [
Expand Down

0 comments on commit fb449fd

Please sign in to comment.