react-file-viewer
react-file-viewer copied to clipboard
How to hide the scroll bar beside items?
I'm using FileViewer like this:
<div className={documentClasses.documentViewStyle}>
<FileViewer
filePath={`/media/${props.currentPath}`}
fileType={getExtension(props.currentPath)}
/>
</div>
css:
documentViewStyle: {
margin: 'auto',
width: '1000px',
height: '700px',
backgroundColor: '#FFFFFF',
}
A scrollbar appears beside every item (Image, pdf... etc). How can I hide this scrollbar? It seems like the scrollbar is appearing from the FileViewer component if I'm not wrong. Is there any way to override any css property on this component?
@Rahul108 Did you manage to remove it?
@Rahul108 Did you manage to remove it?
This worked for me
.pg-viewer-wrapper {
overflow: hidden !important;
}