1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F OpenNebula/one#5422: Fix datatables styles

This commit is contained in:
Sergio Betanzos 2021-06-30 17:57:22 +02:00
parent cfac4c9c0c
commit dc329b1f0c
No known key found for this signature in database
GPG Key ID: E3E704F097737136
13 changed files with 113 additions and 122 deletions

View File

@ -46,7 +46,7 @@ const GlobalFilter = ({ useTableProps }) => {
*/
const { setGlobalFilter, state: { globalFilter } } = useTableProps
const [value, setValue] = React.useState(globalFilter)
const [value, setValue] = React.useState(() => globalFilter)
const handleChange = React.useCallback(
// Set undefined to remove the filter entirely

View File

@ -45,6 +45,7 @@ export default makeStyles(
gap: '1em',
gridTemplateColumns: 'minmax(0, 1fr)',
gridAutoRows: 'max-content',
paddingBlock: '0.8em',
'& > [role=row]': {
padding: '0.8em',
cursor: 'pointer',

View File

@ -15,7 +15,7 @@ const MarketplacesTable = () => {
const { getMarketplaces } = useMarketplaceApi()
const { filterPool } = useAuth()
const { fetchRequest, loading, reloading, STATUS } = useFetch(getMarketplaces)
const { status, fetchRequest, loading, reloading, STATUS } = useFetch(getMarketplaces)
const { INIT, PENDING } = STATUS
useEffect(() => { fetchRequest() }, [filterPool])

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function Clusters () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.ClustersTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.ClustersTable />
</Box>
)
}

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function Datastores () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.DatastoresTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.DatastoresTable />
</Box>
)
}

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function Groups () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.GroupsTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.GroupsTable />
</Box>
)
}

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function Hosts () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.HostsTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.HostsTable />
</Box>
)
}

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function Images () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.ImagesTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.ImagesTable />
</Box>
)
}

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function MarketplaceApps () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.MarketplaceAppsTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.MarketplaceAppsTable />
</Box>
)
}

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function Marketplaces () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.MarketplacesTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.MarketplacesTable />
</Box>
)
}

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function Users () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.UsersTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.UsersTable />
</Box>
)
}

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function VirtualMachines () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.VmsTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.VmsTable />
</Box>
)
}

View File

@ -1,22 +1,21 @@
import * as React from 'react'
import { styled, Container as MContainer, Box } from '@material-ui/core'
import { Container, Box } from '@material-ui/core'
import * as Tables from 'client/components/Tables'
const Container = styled(MContainer)`
display: flex;
flexDirection: column;
height: 100%
`
function VmTemplates () {
return (
<Container disableGutters>
<Box py={2} overflow='auto'>
<Tables.VmTemplatesTable />
</Box>
</Container>
<Box
height={1}
py={2}
overflow='auto'
display='flex'
flexDirection='column'
component={Container}
>
<Tables.VmTemplatesTable />
</Box>
)
}