@secondstaxorg/sscomp 1.8.77 → 1.8.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -2
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31829,8 +31829,9 @@ const ViewerContainer = styled.div`
|
|
|
31829
31829
|
top: ${headerHeight};
|
|
31830
31830
|
left: 0;
|
|
31831
31831
|
right: 0;
|
|
31832
|
+
width: 100%;
|
|
31832
31833
|
height: calc(100vh - ${headerHeight});
|
|
31833
|
-
position:
|
|
31834
|
+
position:fixed;
|
|
31834
31835
|
overflow-y: auto;
|
|
31835
31836
|
display: flex;
|
|
31836
31837
|
justify-content: center;
|
|
@@ -31930,7 +31931,7 @@ const DocumentViewer = (props) => {
|
|
|
31930
31931
|
setShowDoc(true);
|
|
31931
31932
|
return
|
|
31932
31933
|
}
|
|
31933
|
-
if (data.type == 'multipart/form-data'){
|
|
31934
|
+
if (data.type == 'multipart/form-data' || data.type == 'application/pdf'){
|
|
31934
31935
|
reactPdf.pdfjs.getDocument(files[currDoc].fileUrl).promise.then((doc)=>{
|
|
31935
31936
|
setShowDoc(true);
|
|
31936
31937
|
setPdfDoc(doc);
|