Skip to content

Commit

Permalink
Merge pull request #1837 from AutarkLabs/projects-scrollbar
Browse files Browse the repository at this point in the history
fix: single scrollbar on New Project panel
  • Loading branch information
PeterMPhillips committed Jan 3, 2020
2 parents 5e55319 + db7c996 commit 8395187
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions apps/projects/app/components/Panel/NewProject/NewProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const NewProject = () => {
// already are
const RepoList = ({ visibleRepos, repoArray }) => {
if (visibleRepos.length) return (
<RadioList
<StyledRadioList
items={repoArray}
selected={repoSelected}
onChange={onRepoSelected(repoArray)}
Expand Down Expand Up @@ -214,8 +214,17 @@ const ScrollableList = styled.div`
overflow-y: auto;
padding-right: 10px;
margin: 16px 0;
// Hack needed to make the scrollable list, since the whole SidePanel is a scrollable container
height: calc(100vh - 420px);
/* Hack needed to make the scrollable list, since the whole SidePanel is a scrollable container */
height: calc(100vh - 428px);
`
const StyledRadioList = styled(RadioList)`
> * {
div {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
}
`
const RepoInfo = styled.div`
margin: 20px 0;
Expand Down

0 comments on commit 8395187

Please sign in to comment.