Skip to content

Commit

Permalink
Merge pull request #118 from ReCodEx/fix-sidebar-scrolling
Browse files Browse the repository at this point in the history
Fix sidebar scrolling
  • Loading branch information
Neloop committed Oct 27, 2017
2 parents 27f99e0 + 590b933 commit 3fdad53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/layout/Sidebar/Sidebar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import classNames from 'classnames';

// import Admin from '../Admin';
import Public from './Public';
Expand All @@ -10,6 +11,8 @@ import Student from './Student';
import Supervisor from './Supervisor';
import BadgeContainer from '../../../containers/BadgeContainer';

import styles from './sidebar.less';

const Sidebar = ({
isLoggedIn = false,
studentOf,
Expand All @@ -19,7 +22,7 @@ const Sidebar = ({
small = false,
...props
}) => (
<aside className="main-sidebar">
<aside className={classNames(['main-sidebar', styles.mainSidebar])}>
<section className="sidebar">
{isLoggedIn && <BadgeContainer small={small} />}
{isLoggedIn && <LoggedIn {...props} />}
Expand Down
4 changes: 4 additions & 0 deletions src/components/layout/Sidebar/sidebar.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.mainSidebar {
height: 100%;
overflow-y: scroll;
}

0 comments on commit 3fdad53

Please sign in to comment.