Loading ...
;
return (
-
- Source
- Uploaded by ABCD@equinor.com on Sep 13, 2023
-
+
+ Files
+
-
- Model input files
-
+ Model input files
Size
@@ -27,9 +24,7 @@ export const ModelSourceView = () => {
data.data.fileUploads?.length > 0) ? (
data.data.fileUploads?.map((file: UploadList) => (
-
- {file.originalFileName}
-
+ {file.originalFileName}
**Size**
))
@@ -40,7 +35,7 @@ export const ModelSourceView = () => {
)}
-
-
+
+
);
};
diff --git a/src/features/ModelView/ModelMetadataView/ModelMetadataView.styled.tsx b/src/features/ModelView/ModelMetadataView/ModelMetadataView.styled.tsx
index d93bcb71..94e09ab4 100644
--- a/src/features/ModelView/ModelMetadataView/ModelMetadataView.styled.tsx
+++ b/src/features/ModelView/ModelMetadataView/ModelMetadataView.styled.tsx
@@ -1,34 +1,35 @@
+import { Table } from '@equinor/eds-core-react';
import styled from 'styled-components';
import { spacings } from '../../../tokens/spacings';
export const Metadata = styled.div`
- width: 100%;
- min-width: 256px;
+ display: flex;
+ flex-direction: column;
+ row-gap: ${spacings.LARGE};
+
+ > button {
+ width: fit-content;
+ }
`;
-export const MetadataTable = styled.div`
- width: 100%;
- min-width: 256px;
- > table {
- width: 85%;
+const DataTable = styled(Table)`
+ min-width: 256px;
+ width: 85%;
+`;
- > tbody {
- > tr {
- > .table-first-col {
- width: 20%;
- padding-right: ${spacings.X_LARGE};
- }
+export const NameCell = styled(Table.Cell)`
+ width: 20%;
+ padding-right: ${spacings.X_LARGE};
+`;
- > .table-second-col {
- display: flex;
- flex-direction: row;
- align-items: center;
+export const DataCell = styled(Table.Cell)`
+ display: flex;
+ flex-direction: row;
+ align-items: center;
- > p {
- padding-right: 10px;
- }
- }
- }
- }
+ > p {
+ padding-right: 10px;
}
`;
+
+export { DataTable as Table };
diff --git a/src/features/ModelView/ModelMetadataView/ModelMetadataView.tsx b/src/features/ModelView/ModelMetadataView/ModelMetadataView.tsx
index c0d9704f..1b03a0cc 100644
--- a/src/features/ModelView/ModelMetadataView/ModelMetadataView.tsx
+++ b/src/features/ModelView/ModelMetadataView/ModelMetadataView.tsx
@@ -149,28 +149,26 @@ export const ModelMetadataView = () => {