Skip to content

Commit

Permalink
Make ParaTimes card responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Feb 9, 2024
1 parent 92392c8 commit 1a78f19
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/app/pages/ConsensusDashboardPage/ParaTimesCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ import { RouteUtils } from '../../utils/route-utils'
import { SearchScope } from '../../../types/searchScope'
import { EnabledRuntimePreview, InactiveRuntimePreview } from './RuntimePreview'

const StyledBox = styled(Box)(() => ({
const StyledBox = styled(Box)(({ theme }) => ({
display: 'flex',
[theme.breakpoints.down('md')]: {
flexDirection: 'column',
},
'> div:not(:last-child)': {
borderRight: `1px solid ${COLORS.grayMediumLight}`,
[theme.breakpoints.down('md')]: {
borderBottom: `1px solid ${COLORS.grayMediumLight}`,
},
[theme.breakpoints.up('md')]: {
borderRight: `1px solid ${COLORS.grayMediumLight}`,
},
},
}))

Expand Down

0 comments on commit 1a78f19

Please sign in to comment.