|
|
|
@ -272,20 +272,27 @@ const TaskListPage: React.FC = () => { |
|
|
|
|
<ListItem |
|
|
|
|
key={tobuy.tobuyId} |
|
|
|
|
sx={{ |
|
|
|
|
bgcolor: "background.paper", |
|
|
|
|
bgcolor: 'background.paper', |
|
|
|
|
mb: 1, |
|
|
|
|
borderRadius: 1, |
|
|
|
|
boxShadow: 1, |
|
|
|
|
display: 'flex', |
|
|
|
|
flexDirection: 'row', |
|
|
|
|
flexWrap: 'wrap', |
|
|
|
|
alignItems: 'center', |
|
|
|
|
justifyContent: 'space-between', |
|
|
|
|
// px: 1,
|
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
{/* 食材名 */} |
|
|
|
|
<ListItemText |
|
|
|
|
sx={{maxWidth: '60%', wordBreak: 'break-word', flexGrow: 1}} |
|
|
|
|
primary={tobuy.stuffName} |
|
|
|
|
onClick={() => handleShowHistories(tobuy)} |
|
|
|
|
/> |
|
|
|
|
{/* 買い物リスト:食材情報記入ボタン */} |
|
|
|
|
<ListItemSecondaryAction> |
|
|
|
|
<Typography variant="body1" component="span" sx={{ marginRight: '1em' }}> |
|
|
|
|
<ListItemSecondaryAction sx={{ display: 'flex', alignItems: 'center', flexShrink: 0, gap: 0.5 }}> |
|
|
|
|
<Typography variant="body1" component="span" sx={{ marginRight: '4px' }}> |
|
|
|
|
{`× ${tobuy.amount}`} |
|
|
|
|
</Typography> |
|
|
|
|
{/* 買い物リスト:数量変更ボタン */} |
|
|
|
|