Skip to content

Commit

Permalink
feat: a large show-hide feed button (#408)
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Kelen <[email protected]>
  • Loading branch information
ekelen authored Oct 14, 2020
1 parent e35f0cb commit af29cb9
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions web/src/ui/components/BuildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ const FeedDisplayToggler = ({
padding: '0.3rem 0.7rem',
display: 'flex',
alignItems: 'center',
marginBottom: '1rem',
marginBottom: '1.4rem',
marginTop: '1.4rem',
}

return (
Expand Down Expand Up @@ -210,14 +211,18 @@ const BuildList = ({ builds = [], loaded }) => {
}}
/>
{loaded && indexOfLatestMasterBuildsForProjects.length > 0 && (
<FeedDisplayToggler
{...{
onSetDisplayFeed,
displayFeed,
loaded,
builds,
}}
/>
<div
style={{ display: 'flex', width: '100%', justifyContent: 'center' }}
>
<FeedDisplayToggler
{...{
onSetDisplayFeed,
displayFeed,
loaded,
builds,
}}
/>
</div>
)}
<div
ref={ref}
Expand Down

0 comments on commit af29cb9

Please sign in to comment.