Skip to content

Commit

Permalink
Fix weird layout problems on TopicPage caused by nested <a> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfwong committed Jul 31, 2015
1 parent 60f3560 commit 292a7d8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/TopicList.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,17 @@ class TopicList {
const isTutorial = (details &&
details.children.some(c => c.kind !== "Topic"))

const key = `${child.kind}/${child.nodeSlug}`;
return <Link to={url} style={topicListItemStyle} key={key}>
<h2 style={topicTitleStyle(domainSlug)}>{child.title}</h2>
return <div style={topicListItemStyle} key={child.nodeSlug}>
<Link to={url} style={topicListItemStyle}>
<h2 style={topicTitleStyle(domainSlug)}>{child.title}</h2>
</Link>
{details &&
<div>
<div>{details.description}</div>
{isTutorial &&
<TutorialNavList tutorialData={details} domainSlug={domainSlug} />}
</div>}
</Link>;
</div>;
}

render() {
Expand Down

0 comments on commit 292a7d8

Please sign in to comment.