@monolith-forensics/monolith-ui 1.2.53 → 1.2.54

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.
@@ -55,6 +55,8 @@ const StyledContainer = styled.div `
55
55
  .cm-editor {
56
56
  border: 1px solid ${(props) => props.theme.palette.divider};
57
57
  width: 100%;
58
+ height: 100%;
59
+ margin: 0 auto;
58
60
  }
59
61
  `;
60
62
  const StyledLoader = styled.div `
@@ -96,7 +98,7 @@ export const CodeViewer = ({ file, zoomFactor, isPending }) => {
96
98
  extensions.push(CodeMirror.EditorView.lineWrapping);
97
99
  }
98
100
  if (isPending) {
99
- return (_jsxs(StyledLoader, { children: [_jsx(Loader, { size: 50 }), _jsx("div", { children: "Loading Image..." })] }));
101
+ return (_jsxs(StyledLoader, { children: [_jsx(Loader, { size: 50 }), _jsx("div", { children: "Loading File..." })] }));
100
102
  }
101
103
  return (_jsxs(StyledContainer, { zoomFactor: zoomFactor, children: [loading && (_jsxs(StyledLoader, { children: [_jsx(Loader, { size: 50 }), _jsx("div", { children: "Loading File..." })] })), !loading && (_jsx(CodeMirror.default, { value: query.data || "", theme: theme, extensions: extensions, readOnly: true, editable: false, onClick: (event) => {
102
104
  event.stopPropagation();
@@ -23,6 +23,7 @@ const StyledLoader = styled.div `
23
23
  justify-content: center;
24
24
  align-items: center;
25
25
  gap: 10px;
26
+ height: 100%;
26
27
  `;
27
28
  export const ImageViewer = ({ file, zoomFactor = 1, isPending }) => {
28
29
  const [imageLoaded, setImageLoaded] = useState(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.2.53",
3
+ "version": "1.2.54",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",