feat(cv): qualify templates and reliable local import processing
This commit is contained in:
@@ -210,7 +210,17 @@ export default function CropImageDialog({
|
||||
|
||||
<Box sx={{ px: 1 }}>
|
||||
<Typography variant="body2" sx={{ mb: 1, fontWeight: 700 }}>{t("cropDialogZoom")}</Typography>
|
||||
<Slider min={1} max={3} step={0.01} value={zoom} onChange={(_, value) => setZoom(value as number)} />
|
||||
<Slider aria-label={t("cropDialogZoom")} disabled={saving} min={1} max={3} step={0.01} value={zoom} onChange={(_, value) => setZoom(value as number)} />
|
||||
<Typography variant="body2" color="text.secondary">{t("cropDialogKeyboardHelp")}</Typography>
|
||||
{(["x", "y"] as const).map(axis => {
|
||||
const min = rendered ? Math.min(0, CROPPER_SIZE - (axis === "x" ? rendered.width : rendered.height)) : 0;
|
||||
const label = t(axis === "x" ? "cropDialogHorizontal" : "cropDialogVertical");
|
||||
return <Box key={axis}>
|
||||
<Typography variant="body2">{label}</Typography>
|
||||
<Slider aria-label={label} disabled={saving || min === 0} min={min} max={0} step={1} value={position[axis]}
|
||||
onChange={(_, value) => setPosition(previous => ({ ...previous, [axis]: clamp(value as number, min, 0) }))} />
|
||||
</Box>;
|
||||
})}
|
||||
</Box>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
|
||||
Reference in New Issue
Block a user