Skip to content

Commit

Permalink
bugfix: only apply scroll container when there are more than one idea…
Browse files Browse the repository at this point in the history
… in column
  • Loading branch information
vanderhoop committed Sep 23, 2017
1 parent 9e2ee3a commit 7e9db14
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions web/static/js/components/category_column.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ class CategoryColumn extends Component {
<p><strong>{category}</strong></p>
</div>
<div className={`ui fitted divider ${styles.divider}`} />
<ShadowedScrollContainer contentMaxHeight="50vh">
<ul className={`${category} ${styles.list} ideas`}>
{ideasList}
</ul>
</ShadowedScrollContainer>
{ !!sortedIdeas.length &&
<ShadowedScrollContainer contentMaxHeight="50vh">
<ul className={`${category} ${styles.list} ideas`}>
{ideasList}
</ul>
</ShadowedScrollContainer>
}
</section>
)
}
Expand Down

0 comments on commit 7e9db14

Please sign in to comment.