|
|
@@ -166,7 +166,7 @@ const CalculateExpiryDateModal: React.FC<Props> = ({ |
|
|
position: "fixed", |
|
|
position: "fixed", |
|
|
top: "50%", |
|
|
top: "50%", |
|
|
left: "50%", |
|
|
left: "50%", |
|
|
transform: "translate(-50%, -50%)", |
|
|
|
|
|
|
|
|
transform: "translate(-50%, -50%) scale(0.8)", |
|
|
}} |
|
|
}} |
|
|
> |
|
|
> |
|
|
<Box |
|
|
<Box |
|
|
@@ -202,7 +202,7 @@ const CalculateExpiryDateModal: React.FC<Props> = ({ |
|
|
alignItems="flex-start" |
|
|
alignItems="flex-start" |
|
|
spacing={2} |
|
|
spacing={2} |
|
|
> |
|
|
> |
|
|
<Grid item xs={2.5}> |
|
|
|
|
|
|
|
|
<Grid item xs={4}> |
|
|
<DatePicker |
|
|
<DatePicker |
|
|
sx={textfieldSx} |
|
|
sx={textfieldSx} |
|
|
label={t("productionDate")} |
|
|
label={t("productionDate")} |
|
|
@@ -229,14 +229,14 @@ const CalculateExpiryDateModal: React.FC<Props> = ({ |
|
|
justifyContent: 'center', |
|
|
justifyContent: 'center', |
|
|
alignItems: 'center', |
|
|
alignItems: 'center', |
|
|
alignSelf: 'flex-start', |
|
|
alignSelf: 'flex-start', |
|
|
mt: '8px', // align icon with vertical center of MUI outlined input |
|
|
|
|
|
|
|
|
mt: '20px', // align icon with vertical center of 生產日期 input (label ~20px + half input 28px) |
|
|
height: 56, |
|
|
height: 56, |
|
|
}}> |
|
|
}}> |
|
|
<Add sx={{ |
|
|
<Add sx={{ |
|
|
fontSize: '1.25rem', color:'secondary.main', |
|
|
fontSize: '1.25rem', color:'secondary.main', |
|
|
}}/> |
|
|
}}/> |
|
|
</Grid> |
|
|
</Grid> |
|
|
<Grid item xs={4}> |
|
|
|
|
|
|
|
|
<Grid item xs={2.5}> |
|
|
<ShelfLifeInput |
|
|
<ShelfLifeInput |
|
|
sx={textfieldSx} |
|
|
sx={textfieldSx} |
|
|
value={shelfLife} |
|
|
value={shelfLife} |
|
|
@@ -254,7 +254,7 @@ const CalculateExpiryDateModal: React.FC<Props> = ({ |
|
|
justifyContent: 'center', |
|
|
justifyContent: 'center', |
|
|
alignItems: 'center', |
|
|
alignItems: 'center', |
|
|
alignSelf: 'flex-start', |
|
|
alignSelf: 'flex-start', |
|
|
mt: '8px', |
|
|
|
|
|
|
|
|
mt: '20px', // align with 生產日期 input text box |
|
|
height: 56, |
|
|
height: 56, |
|
|
}}> |
|
|
}}> |
|
|
<SwapHoriz sx={{fontSize: '1.25rem', color:'secondary.main'}}/> |
|
|
<SwapHoriz sx={{fontSize: '1.25rem', color:'secondary.main'}}/> |
|
|
|