Add minor changes
This commit is contained in:
parent
7f18e75647
commit
41d4665e49
14 changed files with 37 additions and 29 deletions
|
|
@ -28,12 +28,7 @@ export const generate = (
|
|||
`
|
||||
: ""
|
||||
}
|
||||
${
|
||||
link
|
||||
? `
|
||||
<a href="${link}" target="_blank">${link}</a>`
|
||||
: ""
|
||||
}
|
||||
${link ? PageContent.parseTypedContent(link) : ""}
|
||||
</div>
|
||||
</section>
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export class PageTimeline extends PageElement {
|
|||
const elements = timeline.map(
|
||||
e => new PageTimelineElement(e, showMore, showLess)
|
||||
);
|
||||
root.append(...elements.map(e => e.getElement()));
|
||||
elements.map(e => e.getElement()).forEach(e => root.appendChild(e));
|
||||
super(elements);
|
||||
this.setElement(root);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue