File tree Expand file tree Collapse file tree 8 files changed +43
-10
lines changed
features/HandleModel/SidePane Expand file tree Collapse file tree 8 files changed +43
-10
lines changed Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
2
3
- const StyledOutletWrapper = styled . section `
3
+ const StyledOutletWrapper = styled . div `
4
4
height: calc(100% - 128px);
5
5
overflow: auto;
6
6
` ;
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import styled from 'styled-components';
3
3
import { spacings } from '../../../tokens/spacings' ;
4
4
import { theme } from '../../../tokens/theme' ;
5
5
6
- export const SidebarWrapper = styled . div `
7
- heigth : 100%;
6
+ export const SidebarWrapper = styled . aside `
7
+ height : 100%;
8
8
max-width: 256px;
9
9
` ;
10
10
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export const PageLayout = styled.div`
8
8
height: 100%;
9
9
` ;
10
10
11
- export const Content = styled . div `
11
+ export const Content = styled . main `
12
12
display: flex;
13
13
flex-direction: column;
14
14
align-items: flex-start;
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
2
import { spacings } from '../../tokens/spacings' ;
3
3
4
- export const BrowseWrapper = styled . div `
4
+ export const BrowseWrapper = styled . main `
5
5
column-gap: ${ spacings . X_LARGE } ;
6
6
padding: ${ spacings . XXX_LARGE } ${ spacings . X_LARGE } ${ spacings . X_LARGE } ;
7
7
Original file line number Diff line number Diff line change @@ -20,12 +20,15 @@ export const Wrapper = styled.div`
20
20
display: grid;
21
21
grid-template-areas: 'sidebar content';
22
22
grid-template-columns: 16rem 1fr;
23
+ height: 100%;
23
24
` ;
24
25
25
- export const ContentWrapper = styled . div `
26
+ export const ContentWrapper = styled . main `
26
27
grid-area: content;
28
+ display: flex;
29
+ flex-flow: column nowrap;
27
30
` ;
28
31
29
- export const SidebarWrapper = styled . div `
32
+ export const SidebarWrapper = styled . aside `
30
33
grid-area: sidebar;
31
34
` ;
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export const Model = () => {
132
132
size = { 24 }
133
133
value = { 100 }
134
134
variant = "indeterminate"
135
- /> { ' ' }
135
+ />
136
136
< Typography variant = "body_short" > Loading, please wait…</ Typography >
137
137
</ div >
138
138
</ Styled . EmptyPage >
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import { NoResults } from '../../../../features/Results/NoResults/NoResults';
3
3
import { useFetchObjectResults } from '../../../../hooks/useFetchChannelResults' ;
4
4
import { usePepmContextStore } from '../../../../hooks/GlobalState' ;
5
5
import { useEffect } from 'react' ;
6
+ import { CircularProgress , Typography } from '@equinor/eds-core-react' ;
7
+ import * as Styled from '../../Model/Model.styled' ;
6
8
7
9
export const ObjectResult = ( ) => {
8
10
const { computeCases, objectResults, setObjectEstimationResults } =
@@ -13,7 +15,20 @@ export const ObjectResult = () => {
13
15
if ( data ) setObjectEstimationResults ( data . data ) ;
14
16
} , [ data , setObjectEstimationResults ] ) ;
15
17
16
- if ( isLoading ) return < > Loading ...</ > ;
18
+ if ( isLoading )
19
+ return (
20
+ < Styled . EmptyPage >
21
+ < div className = "loading" >
22
+ < CircularProgress
23
+ color = "primary"
24
+ size = { 24 }
25
+ value = { 100 }
26
+ variant = "indeterminate"
27
+ />
28
+ < Typography variant = "body_short" > Loading, please wait…</ Typography >
29
+ </ div >
30
+ </ Styled . EmptyPage >
31
+ ) ;
17
32
18
33
return (
19
34
< >
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import { CaseResultView } from '../../../../features/Results/CaseResult/CaseResu
3
3
import { NoResults } from '../../../../features/Results/NoResults/NoResults' ;
4
4
import { usePepmContextStore } from '../../../../hooks/GlobalState' ;
5
5
import { useFetchVariogramResults } from '../../../../hooks/useFetchVariogramResults' ;
6
+ import { CircularProgress , Typography } from '@equinor/eds-core-react' ;
7
+ import * as Styled from '../../Model/Model.styled' ;
6
8
7
9
export const VariogramResults = ( ) => {
8
10
const { data, isLoading } = useFetchVariogramResults ( ) ;
@@ -13,7 +15,20 @@ export const VariogramResults = () => {
13
15
if ( data ) setVariogramResults ( data . data ) ;
14
16
} , [ data , setVariogramResults ] ) ;
15
17
16
- if ( isLoading ) return < > Loading ...</ > ;
18
+ if ( isLoading )
19
+ return (
20
+ < Styled . EmptyPage >
21
+ < div className = "loading" >
22
+ < CircularProgress
23
+ color = "primary"
24
+ size = { 24 }
25
+ value = { 100 }
26
+ variant = "indeterminate"
27
+ />
28
+ < Typography variant = "body_short" > Loading, please wait…</ Typography >
29
+ </ div >
30
+ </ Styled . EmptyPage >
31
+ ) ;
17
32
18
33
return (
19
34
< >
You can’t perform that action at this time.
0 commit comments