Skip to content

Commit

Permalink
Add: Clearer document seperations (#308)
Browse files Browse the repository at this point in the history
Co-authored-by: Spyros <[email protected]>
  • Loading branch information
john681611 and northdpole committed Jun 27, 2023
1 parent 47b5cc2 commit fa252d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ export const DocumentNode: FunctionComponent<DocumentNode> = ({
<div className={`content${active} document-node`}>
<Hyperlink hyperlink={usedNode.hyperlink} />
{expanded &&
getTopicsToDisplayOrderdByLinkType().map(([type, links]) => {
getTopicsToDisplayOrderdByLinkType().map(([type, links], idx) => {
return (
<div className="document-node__link-type-container" key={type}>
{idx > 0 && <hr/>}
<div>
<span>{getDocumentDisplayName(usedNode)}</span>
<b> {DOCUMENT_TYPE_NAMES[type]}</b>:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
}

&__link-type-container:not(:first-child) {
padding-top: 20px;
&__link-type-container hr {
margin: 15px 0;
}
}

0 comments on commit fa252d5

Please sign in to comment.