diff --git a/app/components/DocumentHistory/DocumentHistory.js b/app/components/DocumentHistory/DocumentHistory.js index 2de8c4e1c..257b3f022 100644 --- a/app/components/DocumentHistory/DocumentHistory.js +++ b/app/components/DocumentHistory/DocumentHistory.js @@ -100,30 +100,32 @@ class DocumentHistory extends React.Component { const showLoading = !this.isLoaded && this.isFetching; return ( - - {showLoading ? ( - - - - ) : ( - - {this.revisions.map((revision, index) => ( - - ))} - - )} - {this.allowLoadMore && ( - - )} - + + + {showLoading ? ( + + + + ) : ( + + {this.revisions.map((revision, index) => ( + + ))} + + )} + {this.allowLoadMore && ( + + )} + + ); } } @@ -133,6 +135,16 @@ const Loading = styled.div` `; const Wrapper = styled(Flex)` + position: fixed; + top: 0; + right: 0; + z-index: 1; + min-width: ${props => props.theme.sidebarWidth}; + overflow: scroll; + overscroll-behavior: none; +`; + +const Sidebar = styled(Flex)` background: ${props => props.theme.background}; min-width: ${props => props.theme.sidebarWidth}; border-left: 1px solid ${props => props.theme.divider};