mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: make table scrollable (#6632)
This commit is contained in:
		
							parent
							
								
									99b5db1691
								
							
						
					
					
						commit
						0c0530ddcf
					
				| @ -19,6 +19,9 @@ const Container = styled(Box)(({ theme }) => ({ | ||||
|     display: 'flex', | ||||
|     flexDirection: 'column', | ||||
|     gap: theme.spacing(2), | ||||
| })); | ||||
| 
 | ||||
| const TableContainer = styled(Box)(({ theme }) => ({ | ||||
|     overflowY: 'auto', | ||||
|     maxHeight: theme.spacing(45), | ||||
| })); | ||||
| @ -208,6 +211,7 @@ export const LeadTimeForChanges = ({ leadTime }: ILeadTimeForChangesProps) => { | ||||
|             <Typography variant='h3'> | ||||
|                 Lead time for changes (per release flag) | ||||
|             </Typography> | ||||
|             <TableContainer> | ||||
|                 <Table {...getTableProps()}> | ||||
|                     <SortableTableHeader headerGroups={headerGroups} /> | ||||
|                     <TableBody {...getTableBodyProps()}> | ||||
| @ -225,6 +229,7 @@ export const LeadTimeForChanges = ({ leadTime }: ILeadTimeForChangesProps) => { | ||||
|                         })} | ||||
|                     </TableBody> | ||||
|                 </Table> | ||||
|             </TableContainer> | ||||
|             <ConditionallyRender | ||||
|                 condition={rows.length === 0} | ||||
|                 show={ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user