Skip to content

Commit

Permalink
Merge pull request #51 from vtex-apps/fix/overflow-y-scroll
Browse files Browse the repository at this point in the history
Use overflow-y-auto to prevent scroll bars to show up when not needed
  • Loading branch information
victorhmp authored Nov 28, 2019
2 parents 39e2e3d + 06ec1f1 commit a85531f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Use `overflow-y-auto` instead of `overflow-y-scroll`.

## [1.3.1] - 2019-11-27
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions react/PageLayoutContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const PageLayoutContainer: FC = ({ children }) => {
<div className="flex flex-row-l flex-column vh-100-l">
<EnhancedSideBarContentProvider>
<div
className="w-25-l vh-100-l overflow-y-scroll"
className="w-25-l vh-100-l overflow-y-auto"
style={{ maxWidth: '280px', minWidth: '200px' }}>
<SideBar />
</div>
</EnhancedSideBarContentProvider>
<div
className="w-100 min-vh-100 overflow-y-scroll flex flex-column justify-between"
className="w-100 min-vh-100 overflow-y-auto flex flex-column justify-between"
style={{ scrollBehavior: 'smooth' }}>
<TopNav />
{children}
Expand Down

0 comments on commit a85531f

Please sign in to comment.