-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
Hi everyone!
I'm trying to fit the docx file into this small box, its a 140x17
0 box, but it can't seems possibile to do it.
I tried many time chaning style, className and zoom props, i also gave to #proxy-renderer and #msdoc-renderer div the height: 100%. This helped with the .pptx file but not with the doc and docx file.
Do you have any idea how to solve this?
<ReactDocViewer
key={`${key}-${src}`}
documents={[{ uri: src, fileType: extension }]}
pluginRenderers={DocViewerRenderers}
prefetchMethod="GET"
className={cn("h-full w-full", props.className)}
config={{
header: {
disableHeader: true,
disableFileName: true,
retainURLParams: false,
},
csvDelimiter: ",",
pdfZoom: {
defaultZoom: props.zoom ?? 1.5,
zoomJump: 1.5,
},
pdfVerticalScrollByDefault: true,
noRenderer: {
overrideComponent: NoPreviewComponent,
},
}}
/>
Metadata
Metadata
Assignees
Labels
No labels