Skip to content

Commit a343b24

Browse files
committed
[Frontend] Fix :first-child rendering error
1 parent 7ca6123 commit a343b24

File tree

1 file changed

+4
-10
lines changed
  • services/frontend/src/components/PopulationCourseStats/PassingSemesters

1 file changed

+4
-10
lines changed

services/frontend/src/components/PopulationCourseStats/PassingSemesters/index.jsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,10 @@ export const PassingSemesters = ({ onlyIamRights, useModules }) => {
186186

187187
return (
188188
<>
189-
<Box
190-
sx={{
191-
display: 'flex',
192-
flexDirection: 'row',
193-
'& >:first-child': {
194-
width: '100%',
195-
},
196-
}}
197-
>
198-
<OodiTableExcelExport data={excelData} exportColumnKeys={accessorKeys} />
189+
<Box sx={{ display: 'flex', flexDirection: 'row' }}>
190+
<Box sx={{ width: '100%' }}>
191+
<OodiTableExcelExport data={excelData} exportColumnKeys={accessorKeys} />
192+
</Box>
199193
<Button onClick={() => setCumulativeStats(!cumulativeStats)} sx={{ my: 'auto', mx: 1 }} variant="outlined">
200194
{cumulativeStats ? 'Show yearly stats' : 'Show cumulative stats'}
201195
</Button>

0 commit comments

Comments
 (0)