Skip to content
Snippets Groups Projects
Commit eb3bea2b authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

fix(layout): fix loading... position

parent 19d6a7de
No related branches found
No related tags found
1 merge request!43Sprint #19
......@@ -11,7 +11,7 @@ export default styled.div.attrs({
background-color: ${props => props.bgColor || 'transparent'};
display: flex;
flex-wrap: ${props => props.flexWrap || 'initial'};
flex-direction: row;
flex-direction: ${props => props.flexDirection || 'row'};
justify-content: ${({ justify }) => justify || 'space-evenly'};
height: ${props => get(props, 'height', 'auto')};
......
......@@ -19,14 +19,14 @@ const DashboardItems = ({ onClick, list, deleteProject }) => (
</Row>
) : (
list.map(collection => (
// <HideLoading>
<DashboardItem
collection={collection}
key={collection.id}
onClick={onClick}
onDelete={() => deleteProject(collection)}
/>
// </HideLoading>
<HideLoading key={collection.id}>
<DashboardItem
collection={collection}
key={collection.id}
onClick={onClick}
onDelete={() => deleteProject(collection)}
/>
</HideLoading>
))
)}
</Root>
......@@ -64,12 +64,17 @@ const Root = styled.div`
width: auto;
}
`
// const HideLoading = styled.div`
// > div {
// display: none;
// }
// > div[data-test-id|='fragment'] {
// display: flex;
// }
// `
const HideLoading = styled.div`
> div {
display: none;
}
&:first-of-type > div {
display: flex;
}
> div[data-test-id|='fragment'] {
display: flex;
}
`
// #endregion
......@@ -91,11 +91,11 @@ const Root = styled.div`
const appBarPaddingHelper = props =>
props.canCreateDraft
? css`
padding: calc(${th('appBar.height')}) calc(${th('gridUnit')} * 12)
calc(${th('gridUnit')} * 2);
padding: calc(${th('appBar.height')} + ${th('gridUnit')})
calc(${th('gridUnit')} * 12) calc(${th('gridUnit')} * 2);
`
: css`
padding: calc(${th('appBar.height')} + ${th('gridUnit')} * 2.5)
padding: calc(${th('appBar.height')} + ${th('gridUnit')} * 4)
calc(${th('gridUnit')} * 12) calc(${th('gridUnit')} * 2);
`
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment