|
|
|
|
@ -130,6 +130,7 @@ type CellContainerProps = { |
|
|
|
|
as?: 'td' | 'th', |
|
|
|
|
clickable?: boolean, |
|
|
|
|
columnWidth?: number, |
|
|
|
|
hasValue?: boolean, |
|
|
|
|
sorted?: boolean, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -144,7 +145,7 @@ export const CellContainer = styled.td.attrs(({ clickable }: CellContainerProps) |
|
|
|
|
width: ${({ columnWidth }) => (columnWidth ? `${columnWidth}px` : 'auto')}; |
|
|
|
|
min-width: 30px; |
|
|
|
|
font-size: 11px; |
|
|
|
|
font-weight: ${({ clickable }) => (clickable ? 600 : 400)}; |
|
|
|
|
font-weight: ${({ clickable }) => (clickable ? 700 : 400)}; |
|
|
|
|
color: ${({ clickable, theme }) => (clickable ? '#5EB2FF' : theme.colors.white)}; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
background-color: var(--bgColor); |
|
|
|
|
@ -171,6 +172,12 @@ export const CellContainer = styled.td.attrs(({ clickable }: CellContainerProps) |
|
|
|
|
font-size: ${sorted ? 13 : 11}px; |
|
|
|
|
` |
|
|
|
|
: '')} |
|
|
|
|
|
|
|
|
|
${({ hasValue }) => (!hasValue |
|
|
|
|
? css` |
|
|
|
|
color: rgba(255, 255, 255, 0.5); |
|
|
|
|
` |
|
|
|
|
: '')} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const Row = styled.tr` |
|
|
|
|
|