Skip to content

Commit

Permalink
fix: uppdated responsive bahaviour of data table
Browse files Browse the repository at this point in the history
  • Loading branch information
mheggelund committed Sep 8, 2023
1 parent b252408 commit df5804c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion src/components/Table.styled.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
import styled from 'styled-components'
import { spacings } from '../tokens/spacings'

export const StyledDiv = styled.div`
overflow-x: auto;
padding-bottom: 15px;
padding-bottom: ${spacings.MEDIUM};
> .table-wrapper {
> table {
width: auto !important;
margin: 0px !important;
}
> div {
max-width: none !important;
}
}
`
2 changes: 1 addition & 1 deletion src/components/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Chip } from '@equinor/eds-core-react'
import { EdsDataGrid } from '@equinor/eds-data-grid-react'
import { useGetAnalogueModels } from '../hooks/useGetAnalogueModels'
import * as Styled from './Table.styled'
import { EdsDataGrid } from '@equinor/eds-data-grid-react'

export const Table = () => {
const { data: models } = useGetAnalogueModels()
Expand Down

0 comments on commit df5804c

Please sign in to comment.