mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
Merge pull request #106 from hans362/fix-office-preview
Fix Office preview for SharePoint
This commit is contained in:
@@ -14,7 +14,7 @@ const OfficePreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
return (
|
||||
<>
|
||||
<div className="overflow-scroll shadow" ref={docContainer} style={{ maxHeight: '90vh' }}>
|
||||
<Preview url={file['@microsoft.graph.downloadUrl']} width={docContainerWidth.toString()} height="800" />
|
||||
<Preview url={encodeURIComponent(file['@microsoft.graph.downloadUrl'])} width={docContainerWidth.toString()} height="800" />
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
<DownloadBtn downloadUrl={file['@microsoft.graph.downloadUrl']} />
|
||||
|
||||
Reference in New Issue
Block a user