Skip to content

Commit

Permalink
fix(table): max width
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed May 16, 2022
1 parent 9d19408 commit 03817e2
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const NoResultsWrapper = styled.div`

export const TableBodyWrapper = styled.div`
height: calc(100% - 52px);
`

const MaxWidthTableWrapper = styled(TableWrapper)`
max-width: 100%;
`

Expand Down Expand Up @@ -101,7 +104,7 @@ const PricesTable = (props: Props) => {
)

return (
<TableWrapper>
<MaxWidthTableWrapper>
{state.globalFilter?.length && !rows.length ? (
<NoResultsWrapper>
<CellText color='grey900' size='18px'>
Expand Down Expand Up @@ -162,7 +165,7 @@ const PricesTable = (props: Props) => {
</TableBodyWrapper>
</div>
)}
</TableWrapper>
</MaxWidthTableWrapper>
)
}

Expand Down

0 comments on commit 03817e2

Please sign in to comment.