Skip to content

Commit

Permalink
Make recommendation tabs fit in XS screen
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyichen committed Mar 17, 2021
1 parent 3310946 commit 76b76b1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/js/react/Recommender/components/App.jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ define([
return (
<div>
<Nav
className="hidden-xs"
bsStyle="tabs"
justified
activeKey={tab}
Expand All @@ -49,6 +50,19 @@ define([
Search examples
</NavItem>
</Nav>
<Nav
className="hidden-sm hidden-md hidden-lg"
bsStyle="tabs"
activeKey={tab}
onSelect={(key) => onSelected(key)}
>
<NavItem eventKey={1} href="javascript:void(0);">
Recommendations
</NavItem>
<NavItem eventKey={2} href="javascript:void(0);">
Search examples
</NavItem>
</Nav>
<div style={{ minHeight: 200, padding: '1rem 0' }}>
{tab === 1 ? <RecommendedList /> : <SearchExamples />}
</div>
Expand Down

0 comments on commit 76b76b1

Please sign in to comment.