react-file-viewer icon indicating copy to clipboard operation
react-file-viewer copied to clipboard

How to hide the scroll bar beside items?

Open Rahul108 opened this issue 4 years ago • 3 comments

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 avatar Apr 13 '21 12:04 Rahul108

@Rahul108 Did you manage to remove it?

emiliobasualdo avatar Sep 08 '21 18:09 emiliobasualdo

@Rahul108 Did you manage to remove it?

emiliobasualdo avatar Sep 08 '21 18:09 emiliobasualdo

This worked for me

.pg-viewer-wrapper {
  overflow: hidden !important;
}

vleango avatar Oct 07 '21 05:10 vleango