Order CSS fix

This commit is contained in:
Tim
2025-06-22 13:26:39 +02:00
parent 93e7af4ea6
commit a53547d1e0

View File

@@ -47,7 +47,9 @@ const OrderCard: React.FC<{ order: OrderType; onClick: () => void }> = ({order,
return ( return (
<div ref={drag} style={{opacity: isDragging ? 0.5 : 1, marginBottom: 8}}> <div ref={drag} style={{opacity: isDragging ? 0.5 : 1, marginBottom: 8}}>
<Card elevation={4}> <Card elevation={4} sx={{
m: 1
}}>
<CardContent onClick={onClick}> <CardContent onClick={onClick}>
<Typography gutterBottom variant="h5" component="div"> <Typography gutterBottom variant="h5" component="div">
Order: {order.id} Order: {order.id}
@@ -84,7 +86,6 @@ const Column: React.FC<PropsWithChildren<{
<div ref={drop} style={{ <div ref={drop} style={{
flex: 1, flex: 1,
backgroundColor: isOver ? theme.palette.background.paper : 'transparent', backgroundColor: isOver ? theme.palette.background.paper : 'transparent',
padding: 1,
minWidth: 300, minWidth: 300,
maxWidth: 400 maxWidth: 400
}}> }}>
@@ -95,14 +96,13 @@ const Column: React.FC<PropsWithChildren<{
height: '80vh', height: '80vh',
display: 'flex', display: 'flex',
flexDirection: 'column' flexDirection: 'column'
}} elevation={4}> }} elevation={1}>
<CardContent sx={{ <CardContent sx={{
flex: 1, flex: 1,
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
overflowY: 'auto', overflowY: 'auto',
height: '100%', height: '100%',
padding: 2
}}> }}>
<Typography variant="h6">{t(status)}</Typography> <Typography variant="h6">{t(status)}</Typography>
<div style={{flex: 1, overflowY: 'auto'}}> <div style={{flex: 1, overflowY: 'auto'}}>
@@ -190,7 +190,8 @@ export default function OrdersInfo() {
} }
try { try {
await patchOrderMutation.mutateAsync({id: obj.id, status: status}); await patchOrderMutation.mutateAsync({id: obj.id, status: status});
refetch(); await refetch();
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (error) { } catch (error) {
setOpenSnackbar(true); setOpenSnackbar(true);
} }