Skip to content

Commit

Permalink
Fixed home page table
Browse files Browse the repository at this point in the history
  • Loading branch information
Devorein committed Oct 24, 2024
1 parent dc43bde commit 9886261
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
import {
Paper,
Stack,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
tableCellClasses
} from '@mui/material';
import { Paper, Stack, Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from '@mui/material';
import Image from 'next/image';
import Link from 'next/link';

Expand All @@ -21,15 +11,16 @@ import { TableCellText } from './TableCellText';

export function TopBuildersTable({ builders }: { builders: TopBuilderInfo[] }) {
return (
<TableContainer data-test='top-builders-table' component={Paper} sx={{ px: { md: 6 } }}>
<TableContainer data-test='top-builders-table' component={Paper} sx={{ px: { md: 10 } }}>
<Table aria-label='Top scouts table' size='small'>
<TableHead>
<TableRow
sx={{
[`& .${tableCellClasses.root}`]: {
borderBottom: 'none',
'& .MuiTableCell-root': {
paddingLeft: '6px',
paddingRight: '6px'
paddingRight: '6px',
width: '16.67%',
borderBottom: 'none'
}
}}
>
Expand Down Expand Up @@ -57,7 +48,12 @@ export function TopBuildersTable({ builders }: { builders: TopBuilderInfo[] }) {
key={builder.username}
sx={{
'&:last-child td, &:last-child th': { border: 0 },
'& .MuiTableCell-root': { p: '6px', borderBottom: '1px solid', borderBottomColor: 'background.default' }
'& .MuiTableCell-root': {
p: '6px',
borderBottom: '1px solid',
borderBottomColor: 'background.default',
width: '16.67%'
}
}}
>
<TableCell align='center'>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
import {
Paper,
Stack,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
tableCellClasses
} from '@mui/material';
import { Paper, Stack, Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from '@mui/material';
import Image from 'next/image';
import Link from 'next/link';

Expand All @@ -20,15 +10,16 @@ import { TableCellText } from './TableCellText';

export function TopScoutsTable({ scouts }: { scouts: TopScout[] }) {
return (
<TableContainer data-test='top-scouts-table' component={Paper} sx={{ px: { md: 6 } }}>
<TableContainer data-test='top-scouts-table' component={Paper} sx={{ px: { md: 10 } }}>
<Table aria-label='Top scouts table' size='small'>
<TableHead>
<TableRow
sx={{
[`& .${tableCellClasses.root}`]: {
borderBottom: 'none',
'& .MuiTableCell-root': {
paddingLeft: '6px',
paddingRight: '6px'
paddingRight: '6px',
width: '16.67%',
borderBottom: 'none'
}
}}
>
Expand Down Expand Up @@ -56,7 +47,12 @@ export function TopScoutsTable({ scouts }: { scouts: TopScout[] }) {
key={scout.username}
sx={{
'&:last-child td, &:last-child th': { border: 0 },
'& .MuiTableCell-root': { p: '6px', borderBottom: '1px solid', borderBottomColor: 'background.default' }
'& .MuiTableCell-root': {
p: '6px',
borderBottom: '1px solid',
borderBottomColor: 'background.default',
width: '16.67%'
}
}}
>
<TableCell align='center'>
Expand Down

0 comments on commit 9886261

Please sign in to comment.