diff --git a/src/pages/supply/FutureAvailability.tsx b/src/pages/supply/FutureAvailability.tsx index f55c7a5..63fffe9 100644 --- a/src/pages/supply/FutureAvailability.tsx +++ b/src/pages/supply/FutureAvailability.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { Box, Chip, Paper, Typography } from '@mui/material' +import { Box, Chip, Drawer, Typography } from '@mui/material' import { useFutureSignals } from '../../hooks/useFutureSignals' import { FutureSignalCard, @@ -94,50 +94,44 @@ export default function FutureAvailability() { filteredCount={filtered.length} /> - {/* Body */} - - {/* Signal list */} - - {isLoading ? ( - - {[0, 1, 2, 3].map(i => ( - - ))} - - ) : filtered.length === 0 ? ( - - ) : ( - - {filtered.map(signal => ( - - ))} - - )} - - - {/* Detail panel */} - {selectedSignal && ( - - setSelectedSignal(null)} - /> - + {/* Signal list — always full width */} + + {isLoading ? ( + + {[0, 1, 2, 3].map(i => ( + + ))} + + ) : filtered.length === 0 ? ( + + ) : ( + + {filtered.map(signal => ( + + ))} + )} + + {/* Detail drawer */} + setSelectedSignal(null)} + slotProps={{ paper: { sx: { width: 650, boxShadow: '-4px 0 24px rgba(0,0,0,0.10)' } } }} + > + {selectedSignal && ( + setSelectedSignal(null)} + /> + )} + ) } diff --git a/src/pages/supply/Properties.tsx b/src/pages/supply/Properties.tsx index 93d4591..909a22c 100644 --- a/src/pages/supply/Properties.tsx +++ b/src/pages/supply/Properties.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { Box } from '@mui/material' +import { Box, Drawer } from '@mui/material' import { PageHeader } from '../../components/layout' import { useProperties } from '../../hooks/useProperties' import { PropertyFilterBar, PropertyTable, PropertyDetailView } from '../../components/supply' @@ -59,36 +59,28 @@ export default function Properties() { /> - - {/* Table */} - - - - - {/* Detail panel */} - {selectedId && ( - - setSelectedId(null)} /> - - )} + + + + setSelectedId(null)} + slotProps={{ paper: { sx: { width: 650, boxShadow: '-4px 0 24px rgba(0,0,0,0.10)' } } }} + > + {selectedId && ( + setSelectedId(null)} /> + )} + ) }